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!

a.singh
Posts: 16
Joined: Wed Jan 11, 2017 10:38 am

How to run a batch file when we click on the Next button of Welcome Dialog

Hi,

I need to run a batch file when I click on the next button of the Welcome Dialog. Please tell me how can I do this.

Thanks
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: How to run a batch file when we click on the Next button of Welcome Dialog

Hello,

Your scenario could be implemented in the following way:

1. Add the batch file as a temporary file to your project. To achieve this, go to "Files and Folders" page and click Add "Temporary Files" toolbar button.
2. Go to "Custom Actions" page and create a new "LaunchFile" custom action without sequence. In "File to launch" field enter "[&batchname.bat]", where batchname.bat is the file name of your batch. You also could uncheck : "Fail installation if custom action returns an error" option.
3. Go to "Dialogs" page, select WelcomeDlg, click on the "Next" button and go to its Published Events. Create a new "Execute Custom Action" publish event for the custom action you have created earlier.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”