Launch file as Administrator does not work - 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!

rtischer8277
Posts: 22
Joined: Fri Nov 30, 2012 2:26 pm

Launch file as Administrator does not work

I have made a custom action that launches my installed executable with administror privileges. Here is the setting:
runasadmin does not work.png
runasadmin does not work.png (24.9 KiB) Viewed 2328 times
The executable does not, however, launch with admin privileges. What is the problem?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Launch file as Administrator does not work

Hello,

Please keep in mind that the package installation files are deployed on target machine after "Install Execution Stage -> Add Resources" action group. So, you cannot launch the related installation file using a custom action without sequence (e.g. Launch file as Administrator). In order to achieve what you want you should add the related EXE file as a temporary file to your project.

Also, you can take a look on our "Launch a CMD or BAT file" article which may be helpful for you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”