Command Reference

Yes/No Message Box

Displays a standard Windows message box with a Yes button and a No button.

Action ID: 28
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

Variable

Store result in variable

The variable name to store the result of the message box in. The result will depend on whether the user presses the Yes or No button.

YES value

The value to store in the variable if the Yes button is pressed.

NO value

The value to store in the variable if the No button is pressed.

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>>
<< Message>>

Example

In this example, we will ask the user if they would like to download and install some optional image files.

We will store their answer in a custom variable named %InstallImages%.

%InstallImages% will contain "1" if the user selects Yes and "0" if they select No.

Later in our setup we would probably use %InstallImages% as a Boolean condition for an IF action.

Title: Image Files
Message: Would you like to download and install our optional image library?
Icon: Question
Store result in variable: %InstallImages%
YES value: 1
NO value: 0

 

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