InstallAware for Windows Installer Header Image Windows Installer without Rocket Science
InstallAware for Windows Installer
 

Get Folder Location

This command obtains the location of a pre-defined folder on the target system.

Variable

Type the name of the variable to hold the folder location.

Folder

Choose the pre-defined folder that the location should be obtained for.

Get for All Users

Has effect only on NT operating systems. If checked, the command will attempt to obtain the location of the pre-defined folder that is shared by all users of the target system, if it is available.

 Notes

  • If the requested location cannot be found, the variable will hold an empty string.
  • In wizard generated installs, the following variables hold the following folder locations:
Variable Folder Location
PROGRAMFILES Typically C:\Program Files
COMMONFILES Typically C:\Program Files\Common Files
SHORTCUTFILESALL Typically C:\Documents and Settings\All Users\Start Menu\Programs
SHORTCUTFILES Typically C:\Documents and Settings\<user>\Start Menu\Programs
DESKTOPDIR Typically C:\Documents and Settings\<user>\Desktop
WINDIR Typically C:\Windows
WINSYSDIR Typically C:\Windows\System32