InstallShield 2018 » InstallScript Language Reference
The WINSYSDISK system variable contains the name of the disk drive that contains the Windows system folder—usually the C: drive. This folder is used to store application extensions (DLLs), device drivers, and other Windows system files, depending on the version of Windows. Note that the InstallScript engine includes the colon (:) with the drive letter. For information about the Windows system folder, see the documentation for the InstallScript system variable WINSYSDIR.
Note • If you intend to reference the root folder of the drive specified by this variable, you must append a backslash to it (specified as two backslashes). For example, if the value of WINSYSDISK is C:, the following statement refers to the root folder of that drive: WINSYSDISK + "\\".
Project • During setup initialization in InstallScript installations, the value of the WINSYSDIR variable is obtained by calling the Windows API GetSystemFolder.
In Basic MSI and InstallScript MSI installations, the value of the WINSYSDIR variable is obtained by calling the InstallScript function GetDisk with WINSYSDIR; if that fails, this variable is initialized based on the Windows Installer property WindowsVolume. 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.
InstallShield 2018 Help LibrarySeptember 2018 |
Copyright Information | Flexera |