/build/static/layout/Breadcrumb_cap_w.png

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.

0 Comments   [ + ] Show comments

Answers (2)

Posted by: craig16229 19 years ago
Third Degree Brown Belt
0
Are you running the custom action with any particular execution / processing / scheduling?


Craig --<>.
Posted by: Cristian_2k 19 years ago
Yellow Belt
0
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!
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ