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
- :
- How do I pass parameters to a batch file in installshield?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 15, 2007
10:08 AM
How do I pass parameters to a batch file in installshield?
Hi
I am trying to generate a .msi file using install shield,I have to run a batch file for that in the process which i am able to,but i cannot find how to pass a parameter to this batch file.
please let me know if any one has an idea reg this.
thanks
sree
I am trying to generate a .msi file using install shield,I have to run a batch file for that in the process which i am able to,but i cannot find how to pass a parameter to this batch file.
please let me know if any one has an idea reg this.
thanks
sree
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Nov 20, 2007
09:10 AM
If you are trying to run a batch file, you might want to use a custom action (EXE with a path referencing a directory). For your working folder, you'd want [SystemFolder]. For your executable and command line args, you'd want cmd.exe /k "batchfile.bat %commandlinearguments%", where %commandlinearguments% is equal to you args you need.
I'm actually not sure if that would work... but it would be where I'd start if I needed to run a batch file from an install.
-Chris
I'm actually not sure if that would work... but it would be where I'd start if I needed to run a batch file from an install.
-Chris
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)