Summary
How to launch a batch file using a custom action in Installshield Express.Synopsis
Project: Basic MSIThis article discusses a way to launch batch files in Express via custom actions. The method described only launches the batch file on Windows NT systems, such as Windows 2000, Windows XP, Windows Vista, Windows 7, Windows 2003, Windows 2008 and Windows 2008 R2. To launch a batch file on a Windows 9x or ME machine, you need to create an executable wrapper that launches the batch file and launch this executable via custom actions.
Discussion
To launch a batch file that already exists on the machine via a custom action, please try the following steps.
1. Open the Custom Actions view.
2. Right-click on Custom Actions and select New EXE to create a custom action that launches an executable.
3. Set the Source Location property to File Exists on Target System.
4. Set the File Location property to [SystemFolder].
5. Set the File Name and Command Line property to Cmd.exe /c "[INSTALLDIR]filename.bat".
6. Set the Invoke property or sequence/place the Custom Action After Setup Complete Success Dialog.
7. Click the ellipsis button in the Condition property to launch the condition builder. You can deselect the All Operating Systems check box and choose the specific operating systems that you would want your custom action to be invoked on.
Related Articles
Launching a Batch File in Express 4Number of Views Launch a Batch File With Windows Installer 9Number of Views Running a Batch File from Your Setup 14Number of Views Error Reading Setup Initialization File when Launching a Compressed Setup.exe 18Number of Views CAB file extraction during ARL/batch data import operations may fail with "cannot create file" errors due to file locking 3Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago