Variable name | What it contains | NT |
%APPDATADIR% | Path to the Windows Application Data folder. | user |
%APPTITLE% | Contains the package's title. | |
%ARCNAME% | Points to the full filename of the Self-Extracting package. | |
%ARCPATH% | Path where is located the Self-Extracting package. | |
| %COMAPPDATADIR% | Path to the Windows Application Data folder. | common |
| %COMDESKTOPDIR% | Path to the desktop folder. | common |
| %COMFAVORITESDIR% | Path to the Favorites folder. Currently only Windows 2000, Me, XP support it. On other platforms the variable will be the same as %FAVORITESDIR%. | common |
| %COMFILESDIR% | Path to the Common Files folder. | |
| %COMLOCALAPPDATADIR% | Path to the local (nonroaming) Application Data folder. | common |
| %COMMYDOCDIR% | Path to the My Documents folder (or on NT4, the Personal folder). | common |
| %COMPROGMENUDIR% | Path to the Programs folder on the Start Menu. | common |
| %COMSTARTMENUDIR% | Path to the top level of the Start Menu. | common |
| %COMSTARTUPMENUDIR% | Path to the Startup folder on the Start Menu. | common |
| %COMTEMPLATESDIR% | Path to the Templates folder. Currently only Windows 2000, Me, and XP support it. On other platforms the variable will be the same as %TEMPLATESDIR%. | common |
| %CUR% | Points to the current system folder | |
| %CURDATE% | Contains the current date in the following format: "yyyyMMdd" | |
| %CURDATETIME% | Contains the current date/time in the ddMMyyyy hh:mm:ss format. | |
| %DESKTOPDIR% | Path to the desktop folder. | user |
| %DESTPATH% | Path to the final destination folder once files were extracted. This variable is not initialized before the file extraction process! | |
| %EXITCODE% | An integer value (dword) that contains the exit code that the package process will receive when it closes. See below for further information. | |
| %FAVORITESDIR% | Path to the Favorites folder. | user |
%FONTSDIR% | Path to the Windows Fonts folder. | |
| %ISADMIN% | Indicates whether the user has administrative rights or not, under NT-like platforms. Boolean type: 1 true, 0 false. Under Win9X always returns true. See below for difference between administrator and power user. | |
| %ISPOWERUSER% | Indicates whether the user has power user rights or not, under NT-like platforms. Boolean type: 1 true, 0 false. Under Win9X always returns true. See below for difference between administrator and power user. | |
| %LOCALAPPDATADIR% | Path to the local (nonroaming) Application Data folder. | user |
| %MYDOCDIR% | Path to the My Documents folder (or on NT4, the Personal folder). | user |
| %NEEDREBOOT% | Indicates whether the system should be restarted when the package closes. Boolean type: 1 true, 0 false. Note that this variable is indicative only: you have to call the Restart Computer custom action yourself (and ask end users if they want to restart Windows). The value of this variable is automatically set by the package if a file for example could not be replaced because it is locked: click here for more information. | |
| %OSVER% | Integer type: indicates the name of the operating system. See below for the different values. | |
| %PARAMS% | Contains the command line parameters passed to the package executable file at startup. | |
| %PBDLGNEXTC% | Holds the text of the Next button for wizard dialog boxes. This variable is always reset to #Next after a dialog is displayed. | |
| %PBLASTDLG% | Only for Wizard-style packages: if you set this variable to "1", then for the next dialog box, the Next button is changed into a "Close" button and the Cancel button is hidden. This should only be used for the last dialog seen by users. | |
| %PROGFILESDIR% | Contains the Program Files shell directory. | |
| %PROGMENUDIR% | Path to the Programs folder on the Start Menu. | user |
| %QUICKLAUNCHDIR% | Path to the Quick Launch shell folder. Currently only Windows 98 (with IE), Me, 2000, and XP support it. | user |
| %SELLANG% | Contains the name of the language the package displays its text in. Useful if you work with multilanguage packages and want to know which language was selected by the user. | |
| %SENDTOMENUDIR% | Path to the current user's Send To folder. | |
| %SHORTCUTPATH% | Indicates the path to the Start Menu Folder where you can optionally place your shortcuts. This variable is actually useful only if you prompt end users to select a Start Menu Folder. Please use it in your custom actions only after the file extraction process. | common (if admin is logged) or user |
| %SILENT% | Indicates whether the silent mode is activated or not. Boolean type: 1 true, 0 false. You can at runtime change this variable and manually enable/disable the silent mode if you wish. | |
| %STARTMENUDIR% | Path to the top level of the Start Menu. | user |
| %STARTUPMENUDIR% | Path to the Startup folder on the Start Menu. | user |
| %SYS% | Contains the Windows System path. (System32 on Windows NT platforms). | |
| %SYSROOT% | System Drive. The drive Windows is installed on, typically "C:". On Windows NT platforms, this is equivalent to the SystemDrive environment variable. | |
| %TEMPLATESDIR% | Path to the Templates folder. | user |
| %TOTALEXTFILE% | Contains the number of files that were unpacked (this does not take account of files that could have been skipped by end users). If the extraction failed, then %TOTALEXTFILE% will be set to "0". Thus you may use custom actions to take appropriate measures in that case. | |
| %TMP% | Points to the User's local Temporary folder. | |
| %WIN% | Contains the system's Windows directory. | |
| %WINVER% | Integer type: contains the operating system version. Possible values: 0: NT-like platform (NT4, 2000, XP) 1: 95-like platform (95, 98, Me). 2: 16-bit running Win32s (not usual). | |