FOLDER_LOCAL_APPDATA

InstallShield 2020 ยป InstallScript Language Reference

The FOLDER_LOCAL_APPDATA system variable stores the fully qualified path to the folder that is defined by the operating system and that serves as a common repository for application-specific data. Common values are C:\Users\<User>\Application Data on Windows Vista and later and C:\Documents and Settings\<User>\Application Data on earlier systems.

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_LOCAL_APPDATA variable is obtained by calling the Windows API function SHGetSpecialFolderPath with the CSIDL_LOCAL_APPDATA value for LPITEMIDLIST.

In Basic MSI and InstallScript MSI installations, the value of the FOLDER_LOCAL_APPDATA variable is initialized based on the Windows Installer property LocalAppDataFolder. Note that deferred, commit, and rollback custom actions do not have access to this property. Therefore, the corresponding FOLDER_LOCAL_APPDATA 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.