Inno Setup Preprocessor: #include

Syntax

include-directive: (include | +) < <filename> >
(include | +) <expr>

Description

Includes the preprocessor output of the specified file. If an Unicode file is used, it must be UTF-8 (with or without a BOM) encoded

If the filename is enclosed in quotes, ISPP first searches for the file in the directory where current file resides, then in the directory where the file that included current file resides, and so on. If the file is not found, it is searched on current include path, set via pragma, then on the path specified by INCLUDE environment variable.

If filename is an expression or specified in angle brackets, it is searched on current include path only.

The filename may be prefixed by "compiler:", in which case it looks for the file in the Compiler directory.

This directive cannot be used inline.

Examples

#include <file.iss>
#include "c:\dir\file.iss"
#include AddBackslash(CompilerPath) + "common.iss"

See also

file, sub.