(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   [ - ] Hide Comments


Please log in to comment

Answer this question or Comment on this question for clarity



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.



Answered 09/09/2013 by: EVEEN
Green Belt

  • 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
Please log in to comment