Reputation: 2701
I have app which retrieve applications from registry. In 32bits Windows it works correctly. But part of the systems are 64bits, and my app read only applications which are 32 bits.
Microsoft.Win32.RegistryKey regKey = Microsoft.Win32.Registry.LocalMachine;
Microsoft.Win32.RegistryKey subKey1 =
regKey.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall");
string[] subKeyNames = subKey1.GetSubKeyNames();
List<string> lst = new List<string>();
I don't have 64 bit Windows and I cannot check how registry looks on 64 bit machine.
Thanks
Upvotes: 2
Views: 1409
Reputation: 49013
This is because of registry redirection.
Specifically, there is a Wow6432Node
that contains registry keys for 32-bit processes on a 64-bit OS (WOW64).
Upvotes: 2