Bug Report: Registry Key Permission - Advanced Installer Community
matrixugly
Posts: 3
Joined: Mon Oct 14, 2013 10:37 pm

Bug Report: Registry Key Permission

I have a bug to report regarding the proper setting of registry key permissions.
Note: I tried to reproduce this on a fresh blank new .aip project and it was not reproducible. I think the issue may be related to when you have sub registry folders and/or registry value removals defined.
If it's not reproducible, I would be happy to do a screen share with a developer or support staff.

Environment:

Advanced Installer 10.6 Professional
I have a project which has a registry key set in HKEY_LOCAL_MACHINE/Software/MyRegKey. In this key there are Value Removals.

Steps to Reproduce:
1. When I click on the properties of MyRegKey, I notice the 'Create (if absent) at install' checkbox is unchecked.
2. Then I go to the Permissions tab. I give 'Everyone' the ability to have read permissions on this Key.
3. Click Ok.
4. Click on properties of MyRegKey and notice that the 'Create (if absent) at install' checkbox is CHECKED this time! :o
5. This results in my installer not setting proper registry permissions for vital functions at my customer environments. :cry:

Work-arounds:
1. Manually go into regedit and grant your permissions there :twisted: (gross, right? Kinda defeats the purpose of an automated installer)
2. Follow steps 1-4 from above, but then UNCHECK the box. DO NOT TOUCH THE PERMISSIONS TAB. Then click OK, and the checkbox will remain unchecked. :shock:
(If you touch the permissions tab and hit OK, it will secretly check the box again)
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Bug Report: Registry Key Permission

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Indeed, I can reproduce and confirm this issue. A fix will be available in the next version of Advanced Installer, thank you for bringing it to our attention.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Bug Report: Registry Key Permission

Hello,

After forwarding your observation to the development team I was informed that:
1. When I click on the properties of MyRegKey, I notice the 'Create (if absent) at install' checkbox is unchecked.
2. Then I go to the Permissions tab. I give 'Everyone' the ability to have read permissions on this Key.
3. Click Ok.
4. Click on properties of MyRegKey and notice that the 'Create (if absent) at install' checkbox is CHECKED this time!
This is normal behaviour in Advanced Installer because of Windows Installer rules. Once you define permissions on a registry key that key must have some options on it. If no option would be specified explicitly then Windows Installer would consider one: "Create key-if absent"
5. This results in my installer not setting proper registry permissions for vital functions at my customer environments.
I'm not sure I fully understand your scenario. Can you please give us more details(maybe exemplify)?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
matrixugly
Posts: 3
Joined: Mon Oct 14, 2013 10:37 pm

Re: Bug Report: Registry Key Permission

The problem I'm running into is that sometimes the registry key gets created with the wrong permissions.

For example, I set permissions for 'Everyone' to have 'READ' permissions. But on a Server 2008 R2 instance, I see there is no entry for 'Everyone'.

Return to “Common Problems”