Ask user for a folder¶
Displays a dialog box which lets you ask end users to enter the path to a folder. They can also click a Browse button to navigate to the folder of their choice. It exactly works like the destination folder option. This option is useful if you wish to obtain another directory than the main one and install some files in that folder: also see the File Properties page for more ideas.
Property Name | Data Type | Description |
---|---|---|
Caption | String | The title that appears on the dialog box or in the wizard's instruction panel. |
DefaultDirectory | String | The default folder value displayed when the dialog is shown. |
LabelText | String | This text will be displayed near the field where end users type the answer to the question. By default #AskBrowseFolders. |
PromptDirText | String | This is the text that appears in the title of the question window and asks end users to select the wished directory. |
Variable | VarName | This is the variable that will store the path selected by the end user. For example %MYPATH% |
The package will show a dialog box displaying the value of "PromptText" (the question) and a field where end users can type the path (the answer). The variable specified by "Variable" is set to the path chosen by the end user when the latter presses OK (or Next).
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.