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!

aigeek
Posts: 1
Joined: Sat Mar 21, 2015 4:01 pm

How to launch a .bat file after successfull installation.

i am very newbie to creating installer and i really need help with this.
i am trying to create a installer that will first unzip the file in directory like c:/programfiles/.. and then from within the unzipped folder launch .bat file with administrative right that will install the whole application.

Could anyone please help me with this?
:?: :?: :?:
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to launch a .bat file after successfull installation

Hello and welcome to Advanced Installer forums,

In order to launch a .bat file using administrator privileges, you can add the predefined Launch file custom action as a custom action with sequence and enable the Run as administrator option from the custom action properties.
Also, make sure that the Execution Time of the custom action is set to: When the system is being modified (deferred).

You can also take a look on the How do I launch a CMD or BAT file? article which may be useful to you.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”