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.
FOLLOW US
Get the latest news in Application Packaging