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!

vikinglief
Posts: 4
Joined: Tue Sep 20, 2016 6:33 pm

Listbox with checkbox next to each item?

I would like to present a list of extra add-ons to the user, that the user could select any or all of to be included during install. Under the hood, the inclusion of any one particular add-on would result in modifying a config file to enable or disable functionality within my program.

Visually, a listbox where each item has a checkbox next to it or a treeview where each node has a checkbox would be ideal.

The intent is to make this list reasonably dynamic, so I would not have to manually add additional checkbox controls as time goes on to support additional add-ons.

Is there any control that I can use for this?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Listbox with checkbox next to each item?

Hi,

There are two controls that you can use in order to achieve what you want: Quick Selection Tree or Check List.

In case you want to populate the list with files organized in features, the best approach is to use a "Quick Selection Tree" control, that will display all the features from your project. When you add a new feature related to an add-on, it will be displayed automatically in the quick selection tree.

If you want your add-ons to be read from a file (e.g. config file), you can use a "Check List" control, then implement your own custom action to populate it.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
vikinglief
Posts: 4
Joined: Tue Sep 20, 2016 6:33 pm

Re: Listbox with checkbox next to each item?

Thank you for the reply.

Visually, the check list is what I am looking for. It has the caveat that I must use the Enhanced UI for it to work properly, so it forces me to package it as an .EXE, not an .MSI. Switching back to .MSI after adding the control makes the check list no longer have the check boxes, so that is a little frustrating.

Again, thank you for your reply.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Listbox with checkbox next to each item?

You're welcome.

Unfortunately, the "Check List" control in not supported by Windows Installer. As an extension to the regular "List Box" control, it is part of the improvements available with "Enhanced User Interface". So when Enhanced UI is not enabled, the "Check List" control becomes a "List Box" control, hence the visual transformation.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”