Reading local environment variable values in an MSI
Hy,
(I'm french guy). I'm using InstallShield and I want to get a the target computer local environment variable. I want to know the right syntax. I try [%MyVar] but the syntax seems wrong.
Someone have an idea?
Thanx for your help.
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
EVEEN
11 years ago
The syntax to get the value from a local environment variable is in deed [%VarName]. There are limited scenario's where you can directly use this.
It's in setting new environment variables PATH=[%PATH];[INSTALLDIR] or in Registry writes.
If you want to do something more structural with the value try storing it in a property you declare for it and working with that property your project.
Comments:
-
Don't forget to control for SYSTEM variables vs. USER variables. This can cause havoc, depending on which account you are running the install under. r2
Ron Colson
KACE Koach - ronco 11 years ago