I use VC2008 develop a 32bit app which will access 64bit registry via RegQueryValueEx, and I set samDesired parameter to KEY_READ | KEY_WOW64_64KEY
Under 64bit Windows 7, if I double-click the 32bit app, then it can access the 64bit registry successfully.
However, if I create an 32bit installer with Wise Installation System for the 32bit app, and the installer will invoke the app after the installation. Then each time after the installation is completed and the app is invoked by the installer, then the 32bit app will not be able to access the 64bit registry any more. The error code returned by RegQueryValueEx is 2(File not found error).
Even if I set to run the installer as administrator, the problem still exists.
How to solve it?