FOLDER_TEMP
InstallShield 2022 ยป InstallScript Language Reference
Project:This information applies to InstallScript projects.
The FOLDER_TEMP system variable stores the fully qualified path of the folder designated for temporary files. This folder is used by Windows and most applications on the system and is not created or deleted by the installation. (The folder whose path is stored in the system variable SUPPORTDIR is created by the installation to store installation-specific files and is deleted after the installation completes.)
This system variable is read-only; if you attempt to assign a value to it, a compiler error results. The value of this system variable is shared among object scripts and between object scripts and the main setup script.
Project:During setup initialization in InstallScript installations, the value of the FOLDER_TEMP variable is obtained by calling the Windows API function GetTempPath.
In Basic MSI and InstallScript MSI installations, the value of the FOLDER_TEMP variable is initialized based on the Windows Installer property TempFolder. Note that deferred, commit, and rollback custom actions do not have access to this property. Therefore, the corresponding FOLDER_TEMP variable is empty in deferred, commit, and rollback custom actions. To learn more, see Accessing or Setting Windows Installer Properties Through Deferred, Commit, and Rollback Custom Actions.