Inno Setup Preprocessor: #error

Syntax

error-directive: error <text>

Description

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

Examples

#if VER < EncodeVer(5,4,2)
  #error A more recent version of Inno Setup is required to compile this script (5.4.2 or newer)
#endif

See also

pragma, if, Error