Summary
This article provides information on how user input is recorded for the different Get User Input panels and consoles.
Synopsis
Results Variables store the results of the end user's input during a Get User Input panel or console.
- The default value for the Results Variable name is
$USER_INPUT_RESULTS$for panels and$USER_INPUT_CONSOLE_RESULTS$for consoles. - The value that gets stored in the Results Variables will depend on the type of Get User Input panel or console that is used, as well as the Input Method/Component Type.
Discussion
Get User Input Panel - Simple
For all Input Methods (Textfields, Checkboxes, Radio Buttons, Popup Menu, List), the Results Variable will contain a comma-separated list with each input item surrounded by quotes.
For example, if the Results Variable is $USER_INPUT_RESULTS$, and there are three input items with the labels Option A, Option B, and Option C, and only Option A and Option C are selected when the end-user clicks Next during the install, $USER_INPUT_RESULTS$ will equal:
?"Option A","","Option C"
The variable name of the Results Variable also forms the base name of additional InstallAnywhere variables that will be used to store individual end user input choices from the Get User Input panel.
The convention for the naming of the additional variables is to append an underscore and an integer number to the end of the base name. The number, starting at one (1), increases by one (1) for each additional variable that is needed to store data. In the example above, the following InstallAnywhere variables and values would exist:
$USER_INPUT_RESULTS_1$=Option A
$USER_INPUT_RESULTS_2$=
$USER_INPUT_RESULTS_3$=Option C
There is also a variable to correspond with the USER_INPUT_RESULTS_1, USER_INPUT_RESULTS_2, and USER_INPUT_RESULTS_3. If your installer requires localization, the values and characters that correspond with this user input panel may vary from language to language. The VAR_BOOLEAN variable deals with this by providing a true (1) or false (0) value if choices are selected. To use the example above:
$USER_INPUT_RESULTS_BOOLEAN_1$=1
$USER_INPUT_RESULTS_BOOLEAN_2$=0
$USER_INPUT_RESULTS_BOOLEAN_3$=1
Get User Input Panel - Advanced
Textfield Component Types
For Textfield Component Types, the Result Variable will contain the value the end user input into the textfield without any quotes. For example, if the Result Variable is $USER_INPUT_RESULT$, and "Revenera Software" (without quotes) was entered into the textfield when the end-user clicks Next during the install, $USER_INPUT_RESULT$ will equal:
Revenera Software
Choice Group Component Types
For any Choice Group Component Types, each component will be designated their own Result Variable. Each Result Variable will contain either "0" or "1" (without quotes) depending on whether or not the component was selected.
For example, if the Result Variable for the first component is $USER_INPUT_RESULT$, and the Result Variable for the second component is $USER_INPUT_RESULT2$, and only the first component was selected when the end-user clicks Next during the install, the Result Variables will equal:
$USER_INPUT_RESULT$=1
$USER_INPUT_RESULT2$=0
File Chooser Component Types
For File Chooser Component Types, the Result Variable will contain the path value the end user chooses with the Directory Chooser or the value manually entered into the textfield.
For example, if the Result Variable is $USER_INPUT_RESULT$, and "C:\Program Files" (without quotes) was chosen with the Directory Chooser, when the end-user clicks Next during the install, $USER_INPUT_RESULT$ will equal:
C:\Program Files
Get User Input Console
For all Input Methods (Question, Multiple Choice, Single Choice), the Results Variable will contain a comma-separated list with each input item surrounded by quotes.
For example, if the Results Variable is $USER_INPUT_CONSOLE_RESULTS$, and there are three input items with the labels Option A, Option B, and Option C, and only Option B is selected when the end-user clicks Next during the install, $USER_INPUT_CONSOLE_RESULTS$ will equal:
?"","Option B",""
The variable name of the Results Variable also forms the base name of additional InstallAnywhere variables that will be used to store individual end user input choices from the Get User Input console. The convention for the naming of the additional variables is to append an underscore and an integer number to the end of the base name. The number, starting at one (1), increases by one (1) for each additional variable that is needed to store data. In the example above, the following InstallAnywhere variables and values would exist:
$USER_INPUT_CONSOLE_RESULTS_1$=
$USER_INPUT_CONSOLE_RESULTS_2$=Option B
$USER_INPUT_CONSOLE_RESULTS_3$=
There is also a variable to correspond with the USER_INPUT_CONSOLE_RESULTS_1, USER_INPUT_CONSOLE_RESULTS_2, and USER_INPUT_CONSOLE_RESULTS_3. If your installer requires localization, the values and characters that correspond with this user input panel may vary from language to language. The VAR_BOOLEAN variable deals with this by providing a true (1) or false (0) value if choices are selected. To use the example above:
$USER_INPUT_CONSOLE_RESULTS_BOOLEAN_1$=0
$USER_INPUT_CONSOLE_RESULTS_BOOLEAN_2$=1
$USER_INPUT_CONSOLE_RESULTS_BOOLEAN_3$=0
Additional Information
Related Articles
Get User Input Console Fails to Write Additional Numbered Results Variables to Response File 9Number of Views Default Item Not Selected in "Get User Input - Advanced" Panel During Pre-Uninstall Sequence for Non-English Locales 3Number of Views Get User Input Console with Single Choice Input Method and a Default Value Set Displays a Prompt with Two Colons on the End 24Number of Views Why Default Values That Are Set in Panel Actions Not Picked Up During a Silent or Console Install 3Number of Views Create a New Windows User with an MSI Installer without user input. 4Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago