EN RU
Log in
Home
Download
Purchase
Documentation
Support
Contact us
 
Help  /  FAQ

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 from the command line. See Command Prompt Mode for more details.

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.

See also

  • How to make a project for creating installations for multiple applications
Eonza automation software - free, open source cross-platform program for easy creation and management of scripts.
  • Help
    • Introduction
    • Get to know CreateInstall
    • Compare installers
    • License Agreement
    • License Light
    • License Free
    • Program features
    • Command Reference
    • FAQ
      • Antivirus false positives
      • Command Prompt Mode
      • How to create shortcuts
      • How to get Control ID
      • How to sign an installation
      • How to use environment variables
      • Installing 64-bit applications
      • Local variables
      • Portable version
      • Unpacking filter
      • Common dialog parameters
      • Custom dialog function
      • Global variables
      • How to move and resize controls
      • How to use If Condition
      • Language-dependent variables
      • Multi build setups
      • Predefined folders
      • Predefined variables
      • Variables of dialogs
    • Examples & tips
    • CreateInstall Assistant
    • Problem solving
    • Setup Extractor
Copyright © Novostrim, OOO, 2009-2026 All rights reserved.