views:

585

answers:

1

I need to find a way to reference environment variables INSIDE the Inno Setup script file (.iss)...

I've found plenty of references to MODIFYING the environment from an .iss, but none on how to actually use it. Is this possible?

+4  A: 

If you go to http://jrsoftware.org/ishelp/topic_consts.htm and scroll down, you will find that environment vars. can be used by typing {%name|default}

George Edison
I am unable to use the env variables for some reason. Can someone post an example? I added {%OS} to the output file name and all I get back is the original file name with the string "{%OS}" appended - not the value I want from the environment.
Tim