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
- :
- Pass arguements to a batch file in installshield2010
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 17, 2009
08:57 PM
Pass arguements to a batch file in installshield2010
Hi all,
I am using installshield2010. I am using custom actions to pass arguements to batch file but I couldnt make it run. It builds ine but gives an error while running it.
here is my custom action. I run it after the files are transferred options.
Source Location:File exists on target computer
File Location: [SystemFolder]
file name and command line:
cmd.exe /C "[INSTALLDIR]install.bat blue"
wait for action: yes
ignore exit code: no
Also my batch file install.bat does nothing but do echo %1
i.e. print the first arguement
Any help will be appreciated. I have been stuck here for couple of days. The tech support guys also doesnt seem to know the problem 😞 .
Thanks
Ankit
I am using installshield2010. I am using custom actions to pass arguements to batch file but I couldnt make it run. It builds ine but gives an error while running it.
here is my custom action. I run it after the files are transferred options.
Source Location:File exists on target computer
File Location: [SystemFolder]
file name and command line:
cmd.exe /C "[INSTALLDIR]install.bat blue"
wait for action: yes
ignore exit code: no
Also my batch file install.bat does nothing but do echo %1
i.e. print the first arguement
Any help will be appreciated. I have been stuck here for couple of days. The tech support guys also doesnt seem to know the problem 😞 .
Thanks
Ankit
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 10, 2009
08:37 PM
Hi Ankit,
Pass the command line as follows:
cmd.exe /C "[INSTALLDIR]install.bat" blue
Note the quotes ...
Thanks,
Alpesh
Pass the command line as follows:
cmd.exe /C "[INSTALLDIR]install.bat" blue
Note the quotes ...
Thanks,
Alpesh