Search code examples
environment-variablesinno-setup

Can one use environment variables in Inno Setup scripts?


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?


Solution

  • According to this page in the Inno Setup documentation, the value of environment variables can be retrieved using the following syntax:

    {%name|default}