Acces to registry in a custom action
I'm using Developer 8 and having some difficulties with registry access. The msi I'm building launches a 3rd party application that access the registry to write some values. A requisite of my project is to have a single MSI lanching some applications. As far as I know the only way to do this is with custom actions.
The problem is that when InstallShield runs the program it throws an access denied exception. The exception says “Cannot access registry. Please ensure that the installer has access to the registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enumâ€Â
If I run the application manually it works perfectly.
I’m using a Windows 2000 sp4 system as Administrator.
What can be the causes of this behavior?
Does a custom action have less permissions than a normal process?
Thanks.
The problem is that when InstallShield runs the program it throws an access denied exception. The exception says “Cannot access registry. Please ensure that the installer has access to the registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enumâ€Â
If I run the application manually it works perfectly.
I’m using a Windows 2000 sp4 system as Administrator.
What can be the causes of this behavior?
Does a custom action have less permissions than a normal process?
Thanks.
0 Comments
[ + ] Show comments
Answers (2)
Please log in to answer
Posted by:
craig16229
19 years ago
Posted by:
Cristian_2k
19 years ago
Not at all. My MSI only has to launch some external exes. I tried to run my CA in different execute sequence order but it has no effect.
Investigating I found documentation about CA security (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/custom_action_security.asp). This article says that executing a CA with elevated right can be done by a restricted used adding the msidbCustomActionTypeNoImpersonate (0x800) type to the custom action. I tried this but it has no efect because the user is administrator I think.
Thanks!
Investigating I found documentation about CA security (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/custom_action_security.asp). This article says that executing a CA with elevated right can be done by a restricted used adding the msidbCustomActionTypeNoImpersonate (0x800) type to the custom action. I tried this but it has no efect because the user is administrator I think.
Thanks!
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.