This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Basic MSI - Post Build Batch File
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Dec 13, 2007
08:51 AM
Basic MSI - Post Build Batch File
I have been using InstallShield for years, but up until recently have only been using the pure InstallScript project type. Now I am finally getting the opportunity to create a Basic MSI project and noticed that a feature that is present in InstallScript is missing in an MSI project.
In an InstallScript project I could specify a BAT or EXE file to launch immediatly following the build of any release. I used this functionality to copy files and create ISO files for testing and release. Am I missing sopmething or is this really missing from an MSI project? If it is missing, is there a reason why it is absent?
In an InstallScript project I could specify a BAT or EXE file to launch immediatly following the build of any release. I used this functionality to copy files and create ISO files for testing and release. Am I missing sopmething or is this really missing from an MSI project? If it is missing, is there a reason why it is absent?
(4) Replies
‎Sep 30, 2009
07:33 AM
Hi,
How to invoke a batch file from while installation & uninstallation?
say, The batch file is bundled with the installer
How to invoke a batch file from while installation & uninstallation?
say, The batch file is bundled with the installer
‎Aug 29, 2011
05:40 PM
You can create a custom action in Basic MSI using the Custom Action Wizard. In there, you can select to launch an executable, and then enter in something like the following:
"[SystemFolder]cmd.exe" /c "C://batchfile.bat"
Then, somewhere in your sequence (or if a dialog placed after ExecuteAction triggers it), set a dialog button event to DoAction and then the name of your custom action.
Basically, I have a custom configure dialog placed in the sequence after ExecuteAction which has a button prompt to execute a batch file for post-install configuration. When the button is clicked, it does my Custom Action which executes the batch file.
Good luck.
"[SystemFolder]cmd.exe" /c "C://batchfile.bat"
Then, somewhere in your sequence (or if a dialog placed after ExecuteAction triggers it), set a dialog button event to DoAction and then the name of your custom action.
Basically, I have a custom configure dialog placed in the sequence after ExecuteAction which has a button prompt to execute a batch file for post-install configuration. When the button is clicked, it does my Custom Action which executes the batch file.
Good luck.