[Setup]: LicenseFile

Description:

Specifies the name of an optional license agreement file, in .txt or .rtf (rich text) format, which is displayed before the user selects the destination directory for the program. This file must be located in your installation's source directory when running the compiler, unless a fully qualified pathname is specified or the pathname is prefixed by "compiler:", in which case it looks for the file in the compiler directory.

If the user selects a language for which the LicenseFile parameter is set, this directive is effectively ignored. See the [Languages] section documentation for more information.

If an Unicode .txt file is used, it must be UTF-8 (with or without a BOM) or UTF-16LE encoded.

If using a .rtf file with custom colors, be mindful of contrast ratios, especially if supporting a dark style. Aim for at least an AA pass for normal text, using a contrast checker [external link]. Example colors that pass on both light and dark backgrounds include: red #eb0000, green #008a00, and blue #6161ff.

Example:
LicenseFile=license.txt

See also:
InfoBeforeFile
InfoAfterFile