Run as administrator - Advanced Installer Community
nirs
Posts: 42
Joined: Wed Aug 13, 2014 2:46 pm

Run as administrator

Hi,

In my installation there are some custom actions that should be executed as 'administrator'.
During the installation I need to confirm for every such action that I allow that action.

Is there are way that the user will only click once for it?

I can't release my installer if the user needs to click on 'allow' so many times.
Any suggestions?

Thanks
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Run as administrator

Hi,

In order to achieve what you want you can check the "Run as administrator" option from the Install Parameters page. However, this option requires an EXE package type and it cannot be used for an MSI package.

Also, please keep in mind that if your package requires administrator rights (the UAC prompts when the "ProgressDlg" is displayed), then all the custom actions that are placed under the "Install Execution Stage" will inherit those admin rights and you do not need to set the "Run as administrator" option for them.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”