WINSYSDIR

InstallShield 2012 Spring » InstallScript Language Reference

The WINSYSDIR system variable contains the name of the System32 folder. This folder is used to store application extensions (DLLs), device drivers, and other Windows system files, depending on the version of Windows.

On 64-bit Windows systems, this variable points to the folder that stores Windows system files that are used by 32-bit applications. This folder is named SysWOW64. There is a different Windows system folder for system files to be used by 64-bit applications; the system variable WINSYSDIR64 provides access to this folder.

Project: During setup initialization in InstallScript installations on 32-bit systems, the value of the WINSYSDIR variable is obtained by calling the Windows API GetSystemFolder. During setup initialization in InstallScript installations on 64-bit systems, the value of the WINSYSDIR variable is obtained by calling the Windows API GetSystemWow64Directory from a 64-bit executable file.

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