How to create several installations from one project
CreateInstall allows you to create several installations using only one project. You can use this feature if your setups have few differences. You have to define global variables for each setup on the PreProcessor page. You can create up to 10 different installations from one project. After that, specify these variables as $variable_name$ in your project. They will be substituted before making installations. Don't forget to modify the setup file name or the output folder so that setups don't overwrite each other.
Output folder => c:\my setups\$ver$ Setup file => setup$itype$.exe
Build setup
By default, CreateInstall creates an installation for the first set of global variables. You can create an installation with different sets of variables by using the option -m
Also, you can use the menu item Setup - Multi Build. It allows you to create installations for each set of global variables. See Multi Build for more details.
How to enable or disable commands depending on the global variables.
The command Source code can consider or ignore commands, depending on the values of the global variables.
For example, you have global variables var1 and var2. You want a command to be compiled only if the value of var1 is not zero and var2 equals the free string.
Add the command Source code to the project script and insert required commands into it. After that, specify the following code in the Source code command:
ifdef $var1$ && "$var2$" %== "free" { $body$ }
If you want to skip some commands during the installation process, then assign global variables to variables with Set Variables commands and use them in conditional expressions and commands.