Ask user for a choice

Displays a dialog box that lets you ask end users to select between two options (generally Yes or No but it is up to you). For instance, if they wish to install a component on their system or not (see components). You can also use the result of the question for a conditional if/then/else action.

Property Name

Data Type

Description

Caption

String

The title that appears on the dialog box or in the wizard's instruction panel.

DefaultYesCheckedBooleanThe default value displayed when the dialog is shown. True means that the Yes option will appear selected.

LabelText

StringThis text will be displayed near the field where end users type the answer to the question.
NoTextStringThe text that will be displayed for the "No" choice.

PromptText

String

This is the text that appears in the title of the question window and asks end users.

Variable

VarName

This is the variable that will store the result. For example %INSTALLIT%
Result: if the Yes choice was selected, the variable will be set to "1". Otherwise it will be set to "0" (Boolean result).

YesTextStringThe text that will be displayed for the "Yes" choice.

The package will show a dialog box displaying the value of "PromptText" (the question) and two option boxes whose texts are defined by the values of "YesText" and "NoText". Users can only choose one of the two buttons (the answer). The variable specified by "Variable" is then set to the user's answer when the OK (or Next) button is pressed.

If the "Yes" choice was highlighted, the variable's value is set to 1. Otherwise it is set to 0.

If end users select the Cancel button, the package closes.

You can use a goto label statement to check whether an end user have entered correct information: click here for an example.


  Paquet Builder Help - Copyright © G.D.G. Software. All rights reserved.