mstaton
Posts: 17
Joined: Wed Apr 22, 2009 2:24 pm

ListView

Is there a way to manipulate the items in a ListView at runtime? I would like to either add items or change the icons on existing items in the ListView.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: ListView

Hi,

Unfortunately this is not supported by Windows Installer. However, you can try the approach explained in the ComboBox and ListBox controls tutorial. I'm afraid the icons cannot be changed dynamically.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Lena
Posts: 7
Joined: Thu Jan 09, 2014 1:31 pm

Re: ListView

Hello,

i'm currently migrating our Setups to advanced installer and have three questions:

1. Is it now possible to dynamically update a ListView?
2. How can i programatically preselect an entry in a ListView or a ListBox?
3. Is there a way to create dialogs in merge modules?


Regards

Lena
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: ListView

Hello Lena and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer and I apologize for my delayed reply, we are quite busy at the moment.
1. Is it now possible to dynamically update a ListView?
Can you please give us more details about what you are trying to achieve (maybe exemplify)?
2. How can i programatically preselect an entry in a ListView or a ListBox?
In order to achieve this you can simply set the associated control property (e.g. LIST_PROP) to desired entry value. For example, you can add on the previous dialog on [Next>] button a published event like this:
  • Control Event: Set installer property value
    Property: [LIST_PROP]
    Argument: <EntryValue>
3. Is there a way to create dialogs in merge modules?
I'm afraid we don't have support for this.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Lena
Posts: 7
Joined: Thu Jan 09, 2014 1:31 pm

Re: ListView

Hello Daniel, thank you for your help.

I would like to use a listview to display found SQLServers with different Icons, depending if they are standard or express edition.


Regards

Lena
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: ListView

Hello Lena,

Unfortunately, you cannot achieve this. As a workaround you can try to use a list box control and, then populate the list box accordingly.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Lena
Posts: 7
Joined: Thu Jan 09, 2014 1:31 pm

Re: ListView

Hello Daniel,

thank you very much for your help.
For now i used a listbox and added a Symbol to express editions.


Regards

Lena
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: ListView

You're always welcome Lena.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”