Inno Setup Preprocessor: #env

Syntax

env-directive: (env | %) <ident>

Description

Replaces the directive with the value of the specified environment variable. If the environment variable isn't defined, it is replaced with an empty string.

Examples

[Setup]
AppName={#env MyAppName}
AppVersion={#%MyAppVersion}

See also

GetEnv