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

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

  • Global and local variables
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.