Inno Setup Preprocessor: #file

Syntax

file-directive: file <expr>

Description

Replaces the directive with the name of a temporary file containing the translation of the specified file. Upon end of compilation, the temporary file is automatically deleted.

Including a file using this directive creates a new independent instance of the preprocessor, passing it options currently in effect and all declared identifiers. If the included file modifies options in some way, they are not propagated back.

When using this directive in Inno Setup's Source parameter of the [Files] section, specify a DestName parameter too, else the file with not be installed with the original name.

This directive can only be used inline.

Examples

[Setup]
LicenseFile={#file "mylic.txt"}

See also

include.