System Variables
InstallShield 2022 » InstallScript Language Reference
System variables are predefined script variables that contain information such as the source path, the target path, the Windows folder, and the Windows system folder. The installation automatically initializes these system variables when the installation process begins, and it is not necessary to declare these variables in your script.
Project:Many Windows Installer directory properties—such as INSTALLDIR, AppDataFolder, and TempFolder—are available directly as variables in your InstallScript code for Basic MSI and InstallScript MSI projects.
System Variables and Text Substitutions
Some of the system variables have corresponding text substitutions. The installation internally uses text substitution to set the values of certain system variables as shown in the following tables. You can use these text substitutions in your script in the same way that you use text substitutions that you have defined.
Writable System Variables and Text Substitutions
Script Variable |
Corresponding Text Substitution |
Comments |
<PERUSER_INSTALL> |
|
|
<DISK1TARGET> |
|
|
<IFX_COMPANY_NAME> |
If this text substitution is defined in an object script, it applies to only that object, not to the main installation or any other objects in the installation. If it is defined in the main installation, it does not apply to any objects. |
|
<IFX_INSTALLED_DISPLAY_VERSION> |
If this text substitution is defined in an object script, it applies to only that object, not to the main installation or any other objects in the installation. If it is defined in the main installation, it does not apply to any objects. |
|
<IFX_INSTALLED_VERSION> |
If this text substitution is defined in an object script, it applies to only that object, not to the main installation or any other objects in the installation. If it is defined in the main installation, it does not apply to any objects. |
|
<IFX_MULTI_INSTANCE_SUFFIX> |
|
|
<IFX_PRODUCT_DISPLAY_NAME> |
If this text substitution is defined in an object script, it applies to only that object, not to the main installation or any other objects in the installation. If it is defined in the main installation, it does not apply to any objects. |
|
<IFX_PRODUCT_DISPLAY_VERSION> |
If this text substitution is defined in an object script, it applies to only that object, not to the main installation or any other objects in the installation. If it is defined in the main installation, it does not apply to any objects. |
|
<IFX_PRODUCT_KEY> |
If this text substitution is defined in an object script, it applies to only that object, not to the main installation or any other objects in the installation. If it is defined in the main installation, it does not apply to any objects. |
|
<IFX_PRODUCT_NAME> |
If this text substitution is defined in an object script, it applies to only that object, not to the main installation or any other objects in the installation. If it is defined in the main installation, it does not apply to any objects. |
|
<IFX_PRODUCT_VERSION> |
If this text substitution is defined in an object script, it applies to only that object, not to the main installation or any other objects in the installation. If it is defined in the main installation, it does not apply to any objects. |
|
<IFX_SETUP_TITLE> |
If this text substitution is defined in an object script, it applies to only that object, not to the main installation or any other objects in the installation. If it is defined in the main installation, it does not apply to any objects. |
|
<IFX_SUPPORTED_VERSIONS> |
If this text substitution is defined in an object script, it applies to only that object, not to the main installation or any other objects in the installation. If it is defined in the main installation, it does not apply to any objects. |
|
<SHELL_OBJECT_FOLDER> |
|
|
SRCDIR (Read from local) |
<SRCDIR> |
|
SRCDISK (Read from local) |
<SRCDISK> |
|
<TARGETDIR> |
|
|
<TARGETDISK> |
|
|
<UNINST> |
|
|
<UNINSTALL_STRING> |
|
Read-Only System Variables and Text Substitutions
Script Variable |
Corresponding Text Substitution |
Comments |
<COMMONFILES> |
|
|
<DISK1SETUPEXENAME> |
|
|
<ENGINECOMMONDIR> |
|
|
<ENGINEDIR> |
|
|
<FOLDER_APPDATA> |
|
|
<FOLDER_DOTNET_10> |
|
|
<FOLDER_DOTNET_11> |
|
|
<FOLDER_DOTNET_20> |
|
|
<FOLDER_DOTNET_30> |
|
|
<FOLDER_DOTNET_35> |
|
|
<FOLDER_DOTNET_40> |
|
|
<PERSONALDIR> |
|
|
<FOLDER_TEMP> |
|
|
<ISRES> |
If this text substitution is defined in an object script, it applies to only that object, not to the main installation or any other objects in the installation. If it is defined in the main installation, it does not apply to any objects. |
|
<ISUSER> |
If this text substitution is defined in an object script, it applies to only that object, not to the main installation or any other objects in the installation. If it is defined in the main installation, it does not apply to any objects. |
|
<MULTI_INSTANCE_COUNT> |
|
|
<PACKAGE_LOCATION> |
|
|
<PROGRAMFILES> |
|
|
<SELECTED_LANGUAGE> |
|
|
<SHOW_PASSWORD_DIALOG> |
|
|
<SHOW_PASSWORD_DIALOG> |
|
|
<SUPPORTDIR> |
|
|
<WINDIR> |
|
|
<WINDISK> |
|
|
<WINSYSDIR> |
|
|
<WINSYSDISK> |
|