file directive

Inno Setup Preprocessor

file directive

Syntax

file-directive: file <expr>

Description

Replaces the directive with the name of a temporary file containing translation of the specified file. Upon end of compilation, this file is deleted. Including a file using this directive creates a new independent instance of preprocessor object, passing it options currently in effect and all declared identifiers. Note that if included file modifies options in some way, they are not propagated back to current preprocessor object.

When using this directive in the Source parameter of the [Files] section, specify DestName – temporary file name does not match the original name.

This directive can be only inline.

Examples

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

See also

include.