Registry Access - Advanced Installer Community
aeplengg
Posts: 76
Joined: Mon May 05, 2014 5:31 am

Registry Access

Hello,

We have created registry entries from set up, these registry values act as prerequisite to our application. When we install this application on W7 64-bit, W8 32/64-bit the application is not able to read these registry entries for standard user. For administrator user the application runs OK.
We tried to set the registry permissions, but even that is not working. What are we missing? As per my understanding if the permissions are not set then all these registry values should be read by all the users?

Naina
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Registry Access

Hello Naina,

If you will not set any permissions on the registry keys added in our "Registry" page, then the registries installed (under HKLM registry hive) by the installation package will be created with the default permissions which include "Read" access for "Users" users group. Therefore, by leaving empty the "Permissions" tab of your registry keys, after installation your application should be able to read the installed registries even when running under a standard user account. However, please make sure that your application doesn't try to alter the installed registries.

Let us know if this helped, otherwise please send us the .aip (project file) to support at advancedinstaller dot com so we can investigate.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aeplengg
Posts: 76
Joined: Mon May 05, 2014 5:31 am

Re: Registry Access

Hello,

We have set the execution level of standard user. Tried with permission to Users/Everyone etc., but on final w7 64bit or W8 system it shows the registry permissions only for User-PC\User and not as User-PC\Users or everyone

Note: We are creating setup from w7 32-bit machine and testing on W7 32,64-bit and W8 32,64 bit, is that causing problem.
Because on w7 32bit this works OK for standard user

Best Regards,
Naina Dhande
aeplengg
Posts: 76
Joined: Mon May 05, 2014 5:31 am

Re: Registry Access

Whenever any application is installed on target machine with other installers and if it is creating any registry entry it has default permission as follows:
CREATOR OWNER ->Special
SYSTEM -> Full
Administrators -> Full
Users -> Read

Whereas when we install the software created using ADI, it has the default permission as follows:
RESTRICTED
SYSTEM
USER
Administrators
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Registry Access

Hello,

I'm not sure why this happens. However, as a workaround you can use your own custom action to set the desired registry permissions. For example you can add, in "Custom Actions" page, an "Execute inline script code" custom action with sequence scheduled after "Install Execution Stage -> Add Resources" actions group as deferred with no impersonation. In order to develop the custom action, as a reference you can take a look on the "How to: Use a Script to Change Registry Permissions from the Command Line" and "How to change Registry Permissions with RegIni.exe (VBScript)" links.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”