Run Installed EXE file as administrator - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

mika
Posts: 4
Joined: Thu Jan 19, 2012 11:52 am

Run Installed EXE file as administrator

Hello,

I couldn't find the answer to this, most likely, very simple question.
I have a product which I have set the Execution Level to "Require Administrator" which indeeds demands that the installer i launched with administrative privileges. However the installer installs an EXE file to APPDIR and I am not able to set the "Require administrator" flag on this file. Is there any way in AI this can be done or does the user have to check that checkbox under the files properties after it is installed?

Thanks for your time.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Run Installed EXE file as administrator

Hello,

If you are launching the installed .EXE during the installation through a custom action, you can set its execution option to "Deferred with no impersonation". This way the custom action will run under the System account with full privileges.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”