Summary
This article discusses how a list box can be populated dynamically at run time for a Basic MSI project.Synopsis
This article discusses how a list box can be populated dynamically at run time for a Basic MSI project.
Discussion
The following steps set up a dialog that allows a list box to be populated at run time in a Basic MSI project.
- Select the Dialogs view in the project.
- Add a list box control to the desired dialog (e.g., InstallWelcome dialog). The list box control is displayed on the toolbar by default. Hovering your mouse over each control displays the name of the control.
- Select the Direct Editor view and find the ListBox table.
- In the ListBox table, populate the columns with the appropriate values. The following table illustrates some example ListBox table entries. The properties listed in the Value column must be Public properties. A Public property is a property authored in all capital letters.
Column Descriptions
Property ? This is the name of the property that was associated with the control when it was added to the dialog.
Order ? This specifies the order in which the entries are displayed on the dialog.
Value ? In this case, the Value is a property that resolves at run time.
Text ? The text to be displayed. In this case, the Text column does not need to be populated because a property is being used in the value column.
Property Order Value Text MYPROPERTY 1 [COMPANYNAME] MYPROPERTY 2 [MYPROP] - Once the table entries are authored the properties can be populated via a custom action or dialog.
Example 1:
The COMPANYNAME property by default can be edited by the user on the CustomerInformation dialog. A list box control can then be placed on a dialog that is called after the CustomerInformation dialog.
Example 2:
A piece of code can be written that uses the Windows Installer function MsiSetProperty and called via a custom action at some point prior to the dialog containing the list box control. For sample code that uses MSiSetProperty, see InstallShield Help Library topic Getting and Setting Properties.
Additional Information
For information on how to populate a list box in an InstallScript MSI, see InstallShield Help Library topic How Do I Populate a List Box at Run Time?
For more information on the ListBox table, see the Windows Installer Help Library topic ListBox Table.
For more information on the MsiSetProperty, see the Windows Installer Help Library topic MsiSetProperty.
For more information on the list box control, see the Windows Installer Help Library topic ListBox Control.
Related Articles
How to Dynamically Populate a List Box at Runtime. 4Number of Views Dynamically Add and Remove Values from a Combo Box at Run Time 4Number of Views How to Configure IIS settings Dynamically at Run Time 4Number of Views Accessing the MSI Database at Run Time 18Number of Views Disabling Features at Run Time 3Number 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