This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: problem with custom action permissions on vista with MSI installation.
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 07, 2010
07:34 AM
problem with custom action permissions on vista with MSI installation.
Hi,
we have basic msi EXE installation with vbscript custom actions on execute sequence before InstallInitialize. the script in the custom action is writing to HKLM/software/company/product key.
we set "required execution level" to "administrator" and the installation works fine.
Recently we needed to covert the installation to *.MSI file.
This caused the vbscript custom action to get "Access is denied" Error when we are installing on vista and win7 machines. it looks like even though we get the message of UAC to allow the installation to get administrative privileges, the custom action doesn't get this permission.
we are running the installation with administrator user.
I saw a solution to make the custom action as deferred. but we can not move the action after InstallInitialize (http://blogs.msdn.com/b/astebner/archive/2006/12/13/some-useful-things-i-have-learned-about-windows-installer-and-uac.aspx) so we are in a deadlock....
any ideas?
Thanks.
we have basic msi EXE installation with vbscript custom actions on execute sequence before InstallInitialize. the script in the custom action is writing to HKLM/software/company/product key.
we set "required execution level" to "administrator" and the installation works fine.
Recently we needed to covert the installation to *.MSI file.
This caused the vbscript custom action to get "Access is denied" Error when we are installing on vista and win7 machines. it looks like even though we get the message of UAC to allow the installation to get administrative privileges, the custom action doesn't get this permission.
we are running the installation with administrator user.
I saw a solution to make the custom action as deferred. but we can not move the action after InstallInitialize (http://blogs.msdn.com/b/astebner/archive/2006/12/13/some-useful-things-i-have-learned-about-windows-installer-and-uac.aspx) so we are in a deadlock....
any ideas?
Thanks.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 07, 2010
06:42 PM
Try running your MSI from an administrator command prompt. Just being an administrator user may not be enough.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 18, 2010
11:48 PM
I think you would need to have your custom action in deferred mode to make an system changes with elevated permissions on Vista/Win 7.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)