Inno Setup Preprocessor: #emit

Syntax

emit-directive: (emit | =) <expr>

Description

Replaces the directive with the value of expr.

When used inline, the name of this directive can be omitted unless expr begins with the name of another directive.

This means you can, for example, use {#MyDestDir} instead of {#emit MyDestDir} or {#=MyDestDir}

Examples

[Setup]
AppVersion={#GetVersionNumbersString(AddBackslash(SourcePath) + "MyProg.exe")}

[Files]
#emit 'Source: "file1.ext"; DestDir: ' + MyDestDir
Source: "file2.ext"; DestDir: {#MyDestDir}
#emit GenerateVisualCppFilesEntries ; user defined function

[Code]
const
  AppName = '{#SetupSetting("AppName")}';

See also

expr.