emit-directive: | (emit | =) <expr> |
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}
[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")}';
expr.