PreviousNext
Help Library

System Variables

InstallShield 12 » 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. InstallShield automatically initializes these system variables when the installation process begins, and it is not necessary to declare these variables in your script.

Note

NOTE

Many Windows Installer directory properties—such as INSTALLDIR, AppDataFolder, and TempFolder—are available directly as variables in your script.

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

Writable System Variables and Text Substitutions 

Script Variable

Corresponding Text Substitution

Comments

ALLUSERS

<PERUSER_INSTALL>

 

DISK1TARGET

<DISK1TARGET>

 

IFX_COMPANY_NAME

<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

<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

<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_MULTI_INSTANCE_SUFFIX>

 

IFX_PRODUCT_DISPLAY_NAME

<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

<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

<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

<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

<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

<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

<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

<SHELL_OBJECT_FOLDER>

 

SRCDIR (Read from local)

<SRCDIR>

 

SRCDISK (Read from local)

<SRCDISK>

 

TARGETDIR

<TARGETDIR>

 

TARGETDISK

<TARGETDISK>

 

UNINST

<UNINST>

 

UNINSTALL_STRING

<UNINSTALL_STRING>

 

Read-Only System Variables and Text Substitutions

Read-Only System Variables and Text Substitutions 

Script Variable

Corresponding Text Substitution

Comments

COMMONFILES

<COMMONFILES>

 

DISK1SETUPEXENAME

<DISK1SETUPEXENAME>

 

ENGINECOMMONDIR

<ENGINECOMMONDIR>

 

ENGINEDIR

<ENGINEDIR>

 

FOLDER_APPDATA

<FOLDER_APPDATA>

 

FOLDER_PERSONAL

<PERSONALDIR>

 

FOLDER_TEMP

<FOLDER_TEMP>

 

ISRES

<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

<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

<MULTI_INSTANCE_COUNT>

 

PACKAGE_LOCATION

<PACKAGE_LOCATION>

 

PROGRAMFILES

<PROGRAMFILES>

 

SELECTED_LANGUAGE

<SELECTED_LANGUAGE>

 

SHOW_PASSWORD_DIALOG

<SHOW_PASSWORD_DIALOG>

 

SUPPORTDIR

<SUPPORTDIR>

 

WINDIR

<WINDIR>

 

WINDISK

<WINDISK>

 

WINSYSDIR

<WINSYSDIR>

 

WINSYSDISK

<WINSYSDISK>

 




Macrovision Corporation
copyright
contact