include directive

Inno Setup Preprocessor

include directive

Syntax

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

Description

Includes contents of the file preprocessing it.

If filename is enclosed in angle brackets, preprocessor 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 includepath, then on path specified by INCLUDE environment variable.

If filename is an expression (or simply specified in quotes), it is searched on current include path only.

This directive cannot be inline.

Examples

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

See also

file, sub.