Defaulting combobox whose contents are generated at runtime - Advanced Installer Community

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!

FergusMurray
Posts: 150
Joined: Thu Sep 30, 2010 10:44 am

Defaulting combobox whose contents are generated at runtime

I'm trying to Default a combobox whose contents are generated at runtime

My combobox contains all the websites that are on the IIS server, and this is populated using an Init Event on the dialog, that calls a customaction (iis.dll - IIsBrowseServer)
Combobox property is set to IISBrowseComboBox
However when I run the dialog the combobox is not defaulted to any value.

How can i get the combobox to default to the 1st entry?

Thanks,
Fergus.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Defaulting combobox whose contents are generated at runtime

Hi Fergus,

I'm afraid this is the normal behavior of this control, and there is no flag available to set the desired option.

What you can try is set the property of the combobox to the value of the first website after all custom actions have been executed. This will require that you create your own custom action that parses
the property IISBrowseOutput, which according to our user-guide contains a flat, comma separated list of IIS Web Sites and Virtual Directories.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”