TARGETDIR

InstallShield 2015 ยป InstallScript Language Reference

During setup initialization, the installation assigns to the system variable TARGETDIR the fully qualified path to a target folder on the hard disk. This folder will be the one containing the file Win.ini, usually the Windows folder. Some InstallScript functions use this variable when performing file operations. You must set this variable to the folder you want to target before calling these functions. The default code for the OnFirstUIBefore event handler function assigns a value to TARGETDIR.

The value of this system variable is shared among object scripts and between object scripts and the main setup script. The value you assign to this system variable in any script is the value it has in the subsequently executed code in any script (until its value is explicitly reset).

See Also