Command Reference

Show Message Box

Displays a custom text message in a standard Windows message box.

Action ID: 20
Action Category: Dialogs

Settings

Title

The title bar text for the message box.

Message

The text that you want to display in the message box.

Icon

The icon (if any) that you want to include on the message box. Choose from:

  • None

  • Exclamation

  • Information

  • Question

  • Stop

Return Values

Value
(%LastErrorNum%)

Simple Message
(%LastErrorMsg%)

Verbose Message
(%LastErrorDetails%)

0 (OK)

 

 

1 - XXX (i.e. 1, 2, 3...N)

Could not display message box.

<<System-defined error message>>

Example

In this example, we will display a message box to tell the user how many more free installations they have left.

Note: The variable %InstallsRemaining% is a custom variable that would need to have been set earlier in the setup.

Title: Warning
Message: You have %InstallsRemaining% free installs remaining. After these free installs you will be required to pay for additional licenses.
Icon: Information

 

See Also: Alphabetical List of Actions, Categorical List of Actions, On Error tab