| InstallerContactSite Map |
Advanced Installer User Guide | |||
How do I refresh a dialog box control? |
| AnswerThis example will explain how to refresh a ComboBox control after the dialog containing it was loaded without using the “twin dialog“ method. Please follow these steps:
Session.Property(“COMBO“)=“New value“
When the dialog will appear the combox will have an empty value because the property was not set to any value, this is correct. Press the button created, this will run the custom action that sets the property attached to the combobox to the string “New value“. It is a known Windows Installer bug that it cannot refresh a combobox control after a dialog has been loaded. Only after switching to a different dialog the control is reloaded. Here is what you have to do in order for the combobox property to be re-read:
Rebuild the package and test it, you will see that after you press the button the combobox will display the new value of the property.
|
