emit directive

Inno Setup Preprocessor

emit directive

Syntax

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

Description

Replaces the directive with the value of expr.

This directive is likely to be used as inline. In this case, its name can be omitted; however, if an expression to be emitted to translation begins with an ambiguous identifier that may be treated as directive name, emit or its shorthand symbol (=) must be specified.

Examples

[Files]
#emit 'Filename: "file1.ext"; DestDir: {' + MyDestDir + '}'
Filename: "file2.ext"; DestDir: {{#MyDestDir}}
#emit GenerateVisualCppFilesEntries ; user defined macro
[Code]
const
  AppName = '{#SetupSetting("AppName")}';

See also

expr.