Using Tokens in Package Definitions
You can use the following tokens in the command line fields specified in the Install command field of a Package Definition’s Install Types section, and in the User command fields of the Pre-/Post-Processing section.
$ACCOUNT$
The user account specified in the Software Distribution Wizard when the job is distributed. The account token has the format of username@domain:password. For example, administrator@engineering:admin.
$USERNAME$
The user name specified in the user account.
$DOMAIN$
The domain name specified in the user account.
$PASSWORD$
The password specified in the user account.
$KITDIR$
The path that the installer is being run from, with a trailing backslash. This path will be UNC or a mapped drive, depending on the Kit path specified for the package's Install type and the Use UNC path setting.
$DATE$
The current date, in the form 26-January-2005.
$YYYY$
The current year in four digits format. For example, 2005.
$YY$
The current year in two digit format. For example, 05.
$MM$
The current month in two digits format. For example, 06.
$MMM$
The abbreviated name of the current month. For example, Jun.
$MONTH$
The full name of the current month. For example, June.
$DD$
The number of the current day. For example, 26.
$YYMMDD$
Today’s date in yymmdd format. For example, 000626.
$YYMMDD(nn)$, $YY/MM/DD(nn)$, $YY-MM-DD(nn)$, $YYMMMDD(nn)$
Today’s date in year, month, day format, plus or minus a specified number of days. For example, $YYMMMDD(12)$ would return 23JAN04 if today’s date is 2004/01/11.
$DDMMYY$
Today’s date in ddmmyy format. For example, 260604.
$DDMMYY(nn)$, $DD/MM/YY(nn)$, $DD-MM-YY(nn)$, $DDMMMYY(nn)$
Today’s date in day, month, year format, plus or minus a specified number of days.
$MMDDYY$
Today’s date in mmddyy format. For example, 062604.
$MMDDYY(nn)$, $MM/DD/YY(nn)$, $MM-DD-YY(nn)$, $MMMDDYY(nn)$
Date in mmddyy format. For example, 062604.
$TIME$
The current time. For example, 18:53.
$HOUR$
The current hour. For example, 18.
$MINUTE$
The current minute. For example, 53.