I have some code below that is accessing the registry. The application is built for x86 but when run on a 64bit OS it does not find the registry key. I thought that if it was compiled for x86 it would be ok and not try to look in the Wow6432Node node.
Am I doing something wrong or is it just that on a 64bit OS the registry keys should be under the Wow6432Node node?
RegistryKey OurKey = Registry.LocalMachine;
OurKey = OurKey.OpenSubKey(@"SOFTWARE\Inspectron\ImageChecker");
Ram confirmed that the keys in the registry has to be in the Wow6432node and I then found that compiling as x86 and using the code I already had meant that it would look under the Wow6432node for the keys.