GkSetup Professional-Edition includes a variables system that allows
you to write dynamic values to your configuration files, the registry
and shell links. The variables are resolved when the user runs your
setup on his machine. All fields that support the usage of variables
are marked with a little
lightbulb. This feature is available in the Professional-Edition only.
To use a variable you have to enter the variable name enclosed in % characters.
Example: The string
%WINDIR%NOTEPAD.EXE
will be resolved to
C:\WINDOWS\NOTEPAD.EXE or
C:\WINNT\NOTEPAD.EXE
depending on the operating system.
The following table shows you the supported variable names and some typical values:
|
Variable Name |
Typical Value |
Comments |
|
APPNAME |
MyApp |
|
|
APPVERSION |
1.00 |
|
|
SOURCEDIR |
E:\ |
|
|
SETUPDIR |
C:\TEMP\SFX105.tmp\ |
|
|
SEL_DESTPATH |
S:\Program Files\MyApp V1.00\ |
This is the destination path (user selected) |
|
SEL_DESKTOPDIR |
Same as DESKTOPDIR or COMMON_DESKTOPDIR |
Depends on "User-only" or "Common Profile" Setting |
|
SEL_PROGRAMSDIR |
Same as PROGRAMSDIR or COMMON_PROGRAMSDIR |
Depends on "User-only" or "Common Profile" Setting |
|
SEL_STARTMENUDIR |
Same as STARTMENUDIR or COMMON_STARTMENUDIR |
Depends on "User-only" or "Common Profile" Setting |
|
SEL_STARTUPDIR |
Same as STARTUPDIR or COMMON_STARTUPDIR |
Depends on "User-only" or "Common Profile" Setting |
|
SEL_USERNAME |
John Smith |
Username entered in the User Information Dialog |
|
SEL_COMPANYNAME |
My Company |
Company Name entered in the User Information Dialog |
|
SEL_SERIAL |
1234-ABCD-5678 |
Serial number entered in the User Information Dialog |
|
WINDIR |
S:\WINNT\ |
|
|
WINSYSDIR |
S:\WINNT\System32\ |
|
|
WINDRIVE |
S: |
|
|
TEMPDIR |
E:\TEMP\ |
|
|
PROGRAMFILESDIR |
S:\Program Files\ |
|
|
STARTUPDIR |
S:\Documents and Settings\Administrator\Start Menu\Programs\Startup\ |
|
|
COMMON_STARTUPDIR |
S:\Documents and Settings\All Users\Start Menu\Programs\Startup\ |
|
|
STARTMENUDIR |
S:\Documents and Settings\Administrator\Start Menu\ |
|
|
COMMON_STARTMENUDIR |
S:\Documents and Settings\All Users\Start Menu\ |
|
|
PROGRAMSDIR |
S:\Documents and Settings\Administrator\Start Menu\Programs\ |
|
|
COMMON_PROGRAMSDIR |
S:\Documents and Settings\All Users\Start Menu\Programs\ |
|
|
DESKTOPDIR |
S:\Documents and Settings\Administrator\Desktop\ |
|
|
COMMON_DESKTOPDIR |
S:\Documents and Settings\All Users\Desktop\ |
|
|
FONTSDIR |
S:\WINNT\Fonts\ |
|
|
COMMONFILESDIR |
S:\Program Files\Common Files\ |
|
|
MSOFFICEDIR |
C:\Program Files\Microsoft Office\Office |
Installation directory of Microsoft Office. Only valid if MS-office is installed, empty otherwise. |