registry folder permissions problem - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

donfitz
Posts: 9
Joined: Sun May 23, 2010 6:39 pm

registry folder permissions problem

Four folders (Color Settings, Configuration, MyPrograms, and Sessions) are installed several levels below SOFTWARE in the registry, and all folders are specified for Full Control for Everyone. Three of the folders install correctly, but the 'Configuration' folder doesn't include Everyone when installing on XP or Windows 7. This causes our program to fail on startup after installation.

The Configuration folder contains two REG_SZ string values and the other folders have no values.

Why isn't the 'Configuration' folder installed with Full Control for Everyone whereas the other folders are correct? Is this a quirk in the MSI Installer itself? Are there some special requirements that need to be taken into account due to inclusion of two values in the problem folder?

Any suggestion on either a fix or workaround would be appreciated. Advanced Installer Enterprise 9.5 build 47007 is being used to generate msi files.

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

Re: registry folder permissions problem

Hi Don,

The random permission behavior is caused by the Windows Installer engine and unfortunately there's nothing we can do to improve it.
The most reliable method to set registry key permissions is from your own custom action.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
donfitz
Posts: 9
Joined: Sun May 23, 2010 6:39 pm

Re: registry folder permissions problem

Mihai,

Thanks for confirming the source of the problem.

Is it plausible that the inclusion of values in the added folder is the cause of the problem? Since three other folders at the same level without values are added with correct permissions, but the single folder with two values does not get its permissions set, that seems more than a coincidence and might be a limitation in the Windows installer. Adding the values in application code might be the path of least resistance.

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

Re: registry folder permissions problem

Hi Don,
Is it plausible that the inclusion of values in the added folder is the cause of the problem?
In my testing and knowledge Windows Installer has some issues when the registry key already exists on the target machine. More exactly merging or appending permissions to existing registry keys.
Adding a new registry key should work as expected. But as I mentioned, the engine tends to have a random behavior when coming to permissions. If you can author a custom action to set the permissions for you it would be great.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
donfitz
Posts: 9
Joined: Sun May 23, 2010 6:39 pm

Re: registry folder permissions problem

Mihai,

After further experimentation, I found that by removing installer values from the added folders, the new folders were created with Full Control/Everyone permissions as specified. I've moved the writing of initializing values into the product code which works once the folders are properly created.

Thanks for your help.
Don

Return to “Common Problems”