Anthrax
Posts: 19
Joined: Tue Jul 31, 2007 1:51 pm

Updating Listboxes

Hi @ all,

i am trying to insert Values in a Setup Listbox from a VBScript. This works good but the Listbox will not refresh with the new values.
After searching for a way to solve this problem, i've found the twin dialog method. But this method is not working for me because i have to update the Listbox from my custom action.
Is there a way to update the Listbox or start a NewDialog Event from a VBScript?

Thanks in advance

Kind regards Anthrax
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Re: Updating Listboxes

Hi,

Note that Advanced Installer (starting with version 6.3) includes predefined Custom Actions for populating, deleting from and extracting data from ListBox/ComboBox controls. The online tutorial provides comprehensive documentation and example projects (the "twin-dialog" method is also discussed and a sample project is available).

Basically, the control that is used to insert values in the ListBox (typically a Button control), will have 2 Published Events attached:
- the first one is a DoAction event that invokes the Custom Action which inserts in the ListBox
- the second one is a NewDialog event that will show the "twin" dialog

For more details, see this section in the tutorial and the "DualListExample.aip" example project.

Hope this helps.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”