PDA

View Full Version : Custom Command Line Switches



cnkinsd
10-11-2013, 02:42 PM
Hi,

I was wondering how to create custom command line switches?
EXAMPLE:
I have a package that installs the same software, but different configurations based on the command line switch CONFIG1 or CONFIG2 in WiseScript.

Is it possible to do the following in SetupBuilder...
If %CMDLINE% Contains "CONFIG1" Then
Change machine settings for config 1
ElseIf %CMDLINE% Contains "CONFIG2" Then
Change machine settings for config 2
End

If it is possible, how do I do that and what is the command line variable to capture, and if not, May I suggest that this functionality be added to a future update?

Thanks
Kel

linder
10-12-2013, 04:14 AM
Kel,

You can create your own command line variable. Please see attached screenshot.

Just use the "Get System Info (Command Line)" function to retrieve the command line arguments passed into the installation executable.

Does this help?

Friedrich

cnkinsd
10-14-2013, 10:59 AM
Yes it will. It will further acceptance as our new packaging solution evaluation. Thank you very much.

Kel