dougR
Posts: 21
Joined: Mon Nov 19, 2007 9:48 pm

Modifying permissions on registry causes installer to loop

Hi -

I am trying to create an installer for an application where I need to create a couple of ODBC connections for connecting Crystal Reports (version 8.5) to a SQL database.

I accomplished this in the AIP project, by importing the registry key from a machine where the ODBC connections were setup.

One of the problems that I am running into is that the server name needs to be dynamically set when the client application runs. This is not a problem where the user is an administrator, but in a Limited User Account (LUA) environment I need to set the permission of the registry key in order to allow users to set the value of this key.

But, when I set the permission KET_SET_VALUE the application installs fine on XP and when I go to run the application the install comes up again and cycles through the installer again. (As if the application were advertised, which it is not.)

Any thoughts?

Doug
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi Doug,

The reason for the on-demand installation performed by Windows Installer might be a different one (not the registry key permissions). If the application is installed per-machine, the package should not install any files in per-user locations, such as "My Documents" and "Application Data". The same applies for registry entries.

Regarding the permissions, set the following combination on the key containing the value that is updated by the application, for both Everyone and Administrators:

Code: Select all

DELETE
READ_CONTROL
WRITE_DAC
WRITE_OWNER
KEY_QUERY_VALUE
KEY_SET_VALUE
KEY_CREATE_SUBKEY
KEY_ENUMERATE_SUBKEYS
KEY_NOTIFY
KEY_CREATE_LINK
Hope this helps.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
dougR
Posts: 21
Joined: Mon Nov 19, 2007 9:48 pm

Oh, that makes sense - the application is configured to install per machine. But I did have a registry setting that is installed in the HKEY_CURRENT_USER hive. (Which was a actually a fix from the component vendor.)

I tried the permission you recommended (and kept the user registry setting) and it worked out fine. When I go to run the application the installer runs again, but it does complete and the application launches just fine.

Thanks.

Doug

Return to “Common Problems”