Global variables
CreateInstall substitutes the actual value for global variables before creating your installation setup file. These variables must start and end with the '$' symbol.
$outpath$ $myfile$
Suppose you want to use one input folder for files. In this case, it may be convenient to define a $inpath$ global variable. Also, you may want to specify your company name in one place. Add associated variables in Menu - Tools - Global Variables.
inpath => c:\My Application company => My Company, Inc.
After that, you can use $inpath$ and $company$ in any fields of your project.
Predefined global variables
| Variable name | Description |
| appdata | Application Data directory for the current user. |
| comappdata | Application Data directory (common for all users). |
| comprogfiles | Common Files directory. |
| datapath | The full path to settings folder of CreateInstall. |
| day | The current day. |
| exepath | The full path to the CreateInstall folder. |
| hour | The current time - hours. |
| minute | The current time - minutes. |
| month | The current month. |
| prjname | The name of the current project file. |
| prjpath | The directory of the current project file. |
| progfiles | Program Files directory. |
| rootdrive | The root drive. |
| second | The current time - seconds. |
| shortdate | The current date as YYMMDD. |
| shorttime | The current time as HHMMSS. |
| syspath | Windows system directory. |
| temppath | Windows temporary directory. |
| userpath | User directory |
| ver | You can use this variable in Output Folder and Setup Executable parameters. For example, setup$ver$.exe. In all other cases, use the #ver# variable. |
| winpath | Windows directory. |
| year | The current year. |
You can set global variables when you create setups from the command-line. See Command Prompt Mode for more details.
See also
Eonza automation software - free, open source cross-platform program for easy creation and management of scripts.