I am experiencing a strange inconsistency when trying to read the registry but only affecting Windows 2008 SBS x64 Operating systems. Althought I haven't tried everything but Windows 7 x64 works
Taking the comments aside that I should not be using Wow6432Node
in my code at all (I have now changed my production code accordingly), the following seems strange:
Dim baseKey As RegistryKey
Dim regKey As RegistryKey
baseKey = RegistryKey.OpenBaseKey(Microsoft.Win32.RegistryHive.LocalMachine, RegistryView.Registry64)
regKey = baseKey.OpenSubKey("SOFTWARE", False)
regKey = regKey.OpenSubKey("Wow6432Node", False)
regKey = regKey.OpenSubKey("Parker Technologies", False)
regKey = regKey.OpenSubKey("CaptureIT", False)
regKey = regKey.OpenSubKey("3.0", False)
'the above all opens ok on both windwows 7 x64 and 2008 SBS x64
regKey = baseKey.OpenSubKey("SOFTWARE\Wow6432Node\Parker Technologies", False)
'this opens ok on win 7 x64 but fails to open the key on 2008 SBS x64
'(although it does exist as it has just been opened above)
Can someone shed any light on why this behaviour is different in windows7 vs SBS?