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: Custom action does not run the executable with administrator privileges
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 10, 2012
11:08 AM
Custom action does not run the executable with administrator privileges
Hi All,
I am currently using the Limited edition, and created a custom action which should run my software after installation. I was hoping that by doing that, the software would run with administrator privileges... but it does not. As a matter of fact, it looks like it doesn't run at all (but this could be due to the fact that it does not have the right permissions to run).
I am new to Custom actions, so any ideas would be much appreciated.
I don't have the options to set it to run as deferred execution, since currently it's after the setup complete success screen. It has no conditions, so I expected it to run....
Help?
I am currently using the Limited edition, and created a custom action which should run my software after installation. I was hoping that by doing that, the software would run with administrator privileges... but it does not. As a matter of fact, it looks like it doesn't run at all (but this could be due to the fact that it does not have the right permissions to run).
I am new to Custom actions, so any ideas would be much appreciated.
I don't have the options to set it to run as deferred execution, since currently it's after the setup complete success screen. It has no conditions, so I expected it to run....
Help?
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 11, 2012
06:04 AM
if you are hoping to run it in deferred, you cannot set it last. just before the last action you can schedule it. The other option would be to set required execution level to admin under releases. I do not think you can set admin privileges to third party exe. does your custom action install exe?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 11, 2012
01:42 PM
Turns out that if i'm running the installer as administrator, everything works.
So now all I have to do, since I don't know in advanced in which folder will the user have the installer prior to installation, is to create a dynamic shortcut to the installer and set it to always run as administrator... So basically I need an installer for the installer. Anyone has better suggestions?
So now all I have to do, since I don't know in advanced in which folder will the user have the installer prior to installation, is to create a dynamic shortcut to the installer and set it to always run as administrator... So basically I need an installer for the installer. Anyone has better suggestions?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 11, 2012
01:50 PM
I don't really want to run it in deferred (immediate is fine by me), and the right place for it is to be right after the Setup Complete Success screen - but it HAS to run with elevated administrator privileges, which does not seem to happen, unless I run the setup.exe itself as administrator.
Shekar wrote:
if you are hoping to run it in deferred, you cannot set it last. just before the last action you can schedule it. The other option would be to set required execution level to admin under releases. I do not think you can set admin privileges to third party exe. does your custom action install exe?
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)