Command Prompt Mode

Command Prompt Mode

CreateInstall features an ability to create installation packages using the 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 Light or Free version then use according cicmdl.exe and cicmdf.exe.

cicmd.exe Projects\mysetup.ci 
c:\Program Files\CreateInstall\cicmd.exe "c:\My Projects\program.ci"

Additional parameters

You can define the states of checkboxes 'Launch Setup on Close' and 'Close Automatically on Completion'. In this case, the states of checkboxes defined on Project - Setup Builder are ignored.

Close Automatically on Completion
-c or -c1 - checked
-c0 - unchecked
Launch Setup on 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 the variables by using the option -m<i> from the command line. See How to create some setups from one project for more details.