Inno Setup Preprocessor: #error

Inno Setup Preprocessor

Inno Setup Preprocessor: #error

Syntax

error-directive: error <text>

Description

Directive causes the Inno Setup compiler to issue an error message with the specified text. Unlike pragma error, text in error directive is not parsed, so it is recommended to use this directive instead of pragma when possible to avoid possible syntax errors that may hide real errors your script is trying to report.

Examples

#if VER < 0x04000000
  #error A more recent version of Inno Setup is required to compile this script
#endif

See also

pragma, if.