ExitMessage

Add a message that appears at the end of the installation based on an If condition. Type the title of the message box and the text to appear. Use carriage returns for line breaks. AI Builder automatically sizes the width of the message box. The ExitMessage command is only available within an If statement.

For example:

IF LOCATE("zipcode.exe")

DEFAULTDIR: "$LOCATEDIR$"

ELSE

EXITMESSAGE

A previous version of the software was not found.

You may not install this upgrade.

EXIT

ENDIF

Checks for a previously installed copy of Zipcode.exe. If it is not found, it appears a message and exits the installation immediately.

Note: If there is only a blank line or single space on the line between EXITMESSAGE and EXIT, the installation terminates silently. A message does not appear and is not required.