which returns null when it should return string ‘Service Pack 1’. There is no other string in the entire registry. I am using the below code. It works for string ‘ProductName’ in the same key returning the Windows Version but not for CSDVersion containing ‘Service Pack 1’
Dim custRegItem As RegistryItem
custRegItem = New RegistryItem("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion")
stwindowsVersion.text = ("Windows version: ") + custRegItem.value("CSDVersion").StringValue
The unregistered version will only let you run 32 bit.
You should look at that key in Regedit (Windows key-R, then regedit, then Return)
Here, under Windows 10 64 bit Pro, HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion contains 27 keys. No service pack either (actually, it is an insider preview so there is probably no SP).