I am using this code to get a key from the registry:
RegistryKey mykey =
Registry.CurrentUser.OpenSubKey("Software\\Publisher\\Product", true);
And the key does exist in the registry under
\HKCU\Software\Publisher\Product
However, my code is compiled x86 and this is running on a x86_64 machine. So, I reckon I should create the key under
\HKCU\Software\WOW6432Node\Publisher\Product
however, the key isn't found. How can I change my registry (I cannot change the code) to find this key on a x86_64 machine?