We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

prerak6962
Posts: 112
Joined: Mon Dec 08, 2014 5:26 pm

Populate multiple comboBox with same data

Hello,

In my installer, I have 3 combo boxes in a dialog. I want to populate all the 3 of them with same data.
Currently, I have a powershell script that collects the data and sets the AI_COMBOBOX_DATA property. It works fine for one, but how can I set all 3 of them?
The script:

Code: Select all

$ListIP="127.0.01|0.0.0.0"

AI_SetMsiProperty AI_COMBOBOX_DATA "CLIENT_IP|$ListIP"
Thank you.
Prerak
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Populate multiple comboBox with same data

Hello,

I'm sorry for my delayed response.

Our "PopulateCombobox" custom action works in the following way: at the time it is launched it reads the value of the AI_POPULATE_COMBOBOX property and populates the combobox whose property is specified in the value.

To implement your scenario you have to create three different scripts - one for each of your comboboxes and three "PopulateCombobox" custom actions. Then you need to launch them in the following sequence:

Code: Select all

Script1
PopulateCombobox1
Script2
PopulateCombobox2
Script3
PopulateCombobox3
Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”