Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Call batch file with parameters in Custom Actions


1 reply to this topic

yogesh.gupta

yogesh.gupta
  • Full Members
  • 1 posts

Posted 03 May 2012 - 02:39

Hi,

I am using Installed Shield Professional 11.0.

I added a custom action to execute a batch file. This batch file required some parameters (or command line arguments).

How can I pass command line arguments to this batch file silently?

Thanks
Yogesh

MSIYER

MSIYER
  • Full Members
  • 90 posts

Posted 09 May 2012 - 11:00

Say I have a batch fle named build.bat.

I will do something like this:
build.bat release
OR
build.bat debug

Assuming that the build.bat actually compiles some code, I can use the parameters passed(release or debug) to compile code in the desired configuration.

Using LaunchAppandWait function in the Installscript, you can pass the commandline parameters as an argument.