Quantcast
Channel: Symantec Connect - Endpoint Management - Discussions
Viewing all articles
Browse latest Browse all 6689

App invoked from Installer cannot access 64bit registry

$
0
0
I need a solution

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 Studio 7.0 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.

I also try to set "Build Settings > Manifest Fie" in the wise script to "requireAdministrator", "asInvoker", "highest avaiable", but all failed

 

How to solve it?


Viewing all articles
Browse latest Browse all 6689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>