A new Flexera Community experience is coming on November 25th. Click here for more information.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using environmental variables in MSI and MST scripts.

CChong
By Level 11 Flexeran
Level 11 Flexeran
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.

i.e.
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:
(1) Reply
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.