I've been trying to figure out why this won't work but I can't seem to see what I'm missing. I looked in the registry and found where the OS Version, Service Pack, etc was stored. I can successfully read the OS Version out but when I try to do the exact same thing for the Service Pack, i get nothing. What am I doing wrong?
Public Class ComputerDetails
Private Sub Form1_Load(ByVal sender as System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim OS_INFO As RegistryKey = Registry.LocalMachine.OpenSubKey("SOFTWARE\Microsoft\Windows NT\CurrentVersion", False)
OSVersionLBL.Text = OS_INFO.GetValue("ProductName") 'GET Product Name **WORKS**
ServicePackLBL.Text = OS_INFO.GetValue("CSDVersion") 'GET Service pack **DOESNT WORK**
End Sub
End Class