If you want to launch a batch file before the installation, you can use one of the following methods based on your scenario:
1. add the batch file in your project using the "Temporary Files" toolbar button that is available in the "Files and Folders" page, then launch it using a "Launch file" custom action that is executed after the "Wizard Dialogs Stage -> Paths Resolution" action group
2. add the batch file as a "pre-install" prerequisite in the "Prerequisites" page
3. add the batch file in a simple MSI, launch it using a custom action, then add the simple MSI as a "pre-install" prerequisite in the "Prerequisites" page
Let us know if this helped, otherwise give us more details about your scenario.
FOLLOW US
Get the latest news in Application Packaging