PDA

View Full Version : Reading registry key on Win7 x64


Rogier
02-15-2012, 10:51 AM
I'm reading some string from the registry like this:
%REG_READ("HKEY_LOCAL_MACHINE\SOFTWARE\Manufacturer\ProgramNa me\InstallPath")%

I'm actually using Windows 7 64-bit. This particular program happens to be a 64-bit program, so its registry key is as specified above, i.e. not in Wow6432Node.

However, VBP7 being a 32-bit app, accessing the registry will automatically access the corresponding keys within Wow6432Node.

Is there a way around this?

kinook
02-15-2012, 11:03 AM
Not using the REG_READ macro, but you can use the Read Registry action and check the 'Access 64-bit registry view' option.
http://www.kinook.com/VisBuildPro/Manual/readregistry.htm

Rogier
02-16-2012, 05:53 AM
Excellent, thanks! Works like charm.