The Community is now in read-only mode to prepare for the launch of the new Flexera Community. During this time, you will be unable to register, log in, or access customer resources. 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

Mike_Snyders
By Moderator Moderator
Moderator
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.