View Full Version : Using environmental variables in MSI and MST scripts.

12-11-2001, 02:44 PM
Hi All,
I'm a new user of AdminStudio v2.0, 3beta
Has anyone figured out how to pull in environement variables in MSI scripts or MST's?

Heres what I'm trying to do...
For the images that I create, I want to add some customizations to the registry that will help me identify some spefics for auditing and management.

HKLM\Software\ABCproject\installs\appX\Install Date= %DATE%
HKLM\Software\ABCproject\installs\appX\Install Time= %TIME%
HKLM\Software\ABCproject\installs\appX\Installed by= %USERNAME%

Please share the proper syntax if you know how to do this.
Thanks in advance,
D. Rico:confused:

Mike Snyders
12-11-2001, 08:29 PM
Actually Date, Time and UserName are all MSI properties and can be written to the registry by specifing the following text as the registry value [USERNAME], [Date], [Time].

I'll attach a simple Windows Installer setup that does the trick.