Global variables

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 according 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 nameDescription
appdata Application Data directory for the current user.
comappdataApplication Data directory (common for all users).
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.
prjpath The directory of the current project file.
progfiles Program Files directory.
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
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.