I\'ve been working on an installer package and using RegistryKey.OpenBaseKey to work with custom actions that either open and add/remove keys to/from the 64-bit registry or
Targeting needed registry:
RegistryKey localMachine = Registry.LocalMachine; //For example
and get the value that you need:
RegistryKey lKey = localMachine.OpenSubKey(@"SOFTWARE\...\", false);