Using System Variables in Objects

InstallShield 2022

System variables are predefined variables that contain information such as the source path, the target path, the Windows folder, and the Windows system folder. You cannot declare these variables in your script. InstallShield automatically initializes system variables when the installation process begins.

Although you can change and initialize system variables within objects, it is not recommended. When you change a system variable in an object, that change will affect the entire installation. For example, if your object initializes TARGETDIR to a specific value, that value will override what was previously set in the installation project. Therefore, the entire installation will be installed to the directory specified in the object, and not the directory specified by the installation developer.

See Also