listbox multiselect is it possible? - 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!

marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

listbox multiselect is it possible?

Hi

Can we do multi-select on the listboxes? I need a Dialog that shows Virtual directories, and they user will select which directories it wants the install to be applied to.

I read the post http://www.advancedinstaller.com/forums ... ht=listbox which was answered by cosmin, on how to populate the listbox but now I need to know if the user can multi select that?

A Listbox with checkboxes would be the ideal for this! :)

Thanks,
Marcelo
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

I'm afraid that Windows Installer does not support lists with multiple selection or lists with checkboxes because only one selection from a list can be stored in the property of that list.

As a workaround you can create your own dialog (using code) which shows a list with multiple selection. The code for this dialog will be launched as a custom action in the User Interface.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

Hi Cosmin,

Thanks for the tip! To create my own dialog, I would have to use C/C++ right? Since thats the only DLL I can call on custom dialogs.

Thanks!
Marcelo
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,
To create my own dialog, I would have to use C/C++ right?
Yes, you can use C++ to create a custom action DLL. You can read more about this here:
http://msdn2.microsoft.com/en-us/librar ... S.80).aspx

Also, we have an example on a custom action dll, please take a look:
http://www.advancedinstaller.com/user-g ... n-dll.html

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”