Registry Permissions - Advanced Installer Community
olivers
Posts: 1
Joined: Wed Nov 19, 2014 9:19 am

Registry Permissions

I sent this issue by email twice over the past 4 days, but haven't received a response yet, so I'm trying the forum instead. Please assist as soon as possible, since I need to fix this urgently.

I am using the latest version of Advanced Installer. The installer package is created under Windows XP. The problem occurs under Windows 7 64-bit. The installed application is 32-bit.

When I set the permissions on a registry subkey (eg hklocalmachine/programs/casinosoftware/path) the permissions I specify are not set. The permission (everyone) for a root key (eg hklocalmachine/programs/casinosoftware) does get set properly. In a 64-bit environment this actually gets installed under the wow3264node. Not sure if this is pertinent, but I thought I'd mention it.

Interestingly enough, when I manually set the permissions using regedit after the installation completes, I can't even see those registry entries when logged on as guest.

Also, I was always under the impression that any user (including guest) could read the registry. If I install my app with advanced installer without setting any explicit registry permission the "guest" account can't even read the subkeys (can read the root key) - that's why I was trying the set the permissions explicitly to "everyone" with full access.

Not sure where to go from here and any insight is greatly appreciated.

Oliver
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Registry Permissions

Hi Oliver,
I sent this issue by email twice over the past 4 days, but haven't received a response yet, so I'm trying the forum instead.
Unfortunately no e-mail got through, I think it got stuck somewhere along the way. I checked all folders: Inbox, Sent and Spam. Can you please send a test e-mail from a different address?
In a 64-bit environment this actually gets installed under the wow3264node. Not sure if this is pertinent, but I thought I'd mention it.
This is expected behavior, the registry location is explained in Wow6432Node Registry Key article.
when I manually set the permissions using regedit after the installation completes, I can't even see those registry entries when logged on as guest
What do you mean by this? Do the registry entries appear as installed but there's a read access restriction(error popup), or are the registry entries missing altogether? If you're on a 64-bit machine, 32-bit registry entries will always get installed under the Wow6432Node Registry Key.
Not sure where to go from here and any insight is greatly appreciated.
First off you should make sure that if you perform the registry changes manually using regedit you get the expected result, otherwise there might be a problem with the target machine.
Secondly it is well known that Windows Installer's abilities on setting permissions are sometimes limited. Maybe you need to use a Custom Action, where you have full freedom.

In the second case, try the following tool from the command line and make sure it works manually:
http://support.microsoft.com/kb/237607
http://technet.microsoft.com/en-us/libr ... 75566.aspx

... then you can automate the operation as described in the How do I launch a CMD or BAT file? article.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”