Updating a ListBox - 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!

Arthur
Posts: 69
Joined: Wed May 19, 2010 9:53 am

Updating a ListBox

Hi, I have a series of dialog boxes which add an elements to a list. The final dialog box contains a listbox which should show these elements. The final dialog box has a button that allows the user the option to add another element to the list. If the user presses this button, the first dialog box is opened again, and the sequence repeats. The first time through, the listbox on the final dialog page is correct - it shows two elements, the defalut element and the element that the user has just added. On the next cycle, the listbox does not change - although there are now three elements in the list, only the first two are shown. I am also displaying the list in a text box and I can see that the list has been added to as I expect. Can you tell me what I am doing wrong? In each case the dialog boxes are called with a NewDialog event, which I understand to mean that the Windows Installer will refresh the ListBox control. Arthur
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Updating a ListBox

Hello Arthur,

The listbox control doesn't refresh as a result of an event triggered from the same dialog. This is a Windows Installer limitation. To get past this please follow our user guide article.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Arthur
Posts: 69
Joined: Wed May 19, 2010 9:53 am

Re: Updating a ListBox

I understand what you are saying, but according to your guide "Only after switching to a different dialog are these tables re-read" - I am switching to a new dialog which in turn re-opens this one. In each case, I use a NewDialog Event. As far as I can see I am doing the same thing described as the "twin dialog" method, but I don't have identical dialogs. Arthur
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Updating a ListBox

Hello,

Can you please send us the .AIP (project) to support at advancedinstaller dot com so we can investigate it?

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”