Command Prompt Mode
CreateInstall features the ability to create installation packages using console commands or bat files. You can use cicmd.exe for creating installations in command prompt mode by specifying an absolute or relative path to the your_project.ci file. If you have the Light or Free version then use associated cicmdl.exe and cicmdf.exe.
cicmd.exe Projects\mysetup.ci c:\Program Files\CreateInstall\cicmd.exe "c:\My Projects\program.ci"
Also, there is a console version of CreateInstall installation builder cicmdcon.exe. You can respectively use cicmdconl.exe and cicmdconf.exe for Light and Free versions. All command-line parameters are the same as for cicmd.exe.
cicmdcon.exe Projects\mysetup.ci
c:\Program Files\CreateInstall\cicmdcon.exe "c:\My Projects\program.ci"
Additional parameters
You can define the states of the checkboxes 'Launch Setup on Close' and 'Close Automatically on Completion'. In this case, the states of checkboxes defined at Project - Setup Builder are ignored.
Close Automatically upon Completion
-c or -c1 - checked
-c0 - unchecked
Launch Setup upon Close
-r or -r1 - checked
-r0 - unchecked
cicmd.exe -r0 -c1 Projects\mysetup.ci cicmd.exe -c0 Projects\mysetup.ci cicmd.exe -r1 Projects\mysetup.ci
Setting global variables
Option -v allows you to specify global variables through command-line parameters. Separate global variables by ';' character: name=value;name=value.
cicmd.exe -r0 -v "var1=Some string;var2=10" Projects\mysetup.ci cicmd.exe -v "version=Free;id=16;date=07/07/09" Projects\mysetup.ci
You can use such global variables in your project as $variable_name$.
Multi-Build Setup
CreateInstall allows you to use one project for creating different setups depending on the global variables. You can create an installation with different sets of variables by using the option -m from the command line. See How to create multiple setups from one project for more details.