Remember selected values from ListBox - Advanced Installer Community
dejx
Posts: 10
Joined: Sun Jul 26, 2015 12:51 pm
Contact: Website Skype Twitter

Remember selected values from ListBox

I use IIS Browse and SQL Browse, i have set property to "persistent" but when doing an upgrade they are still not selected in the listbox, so doing simple next,next,next in upgrade scenario is not possible.

How do i make selected values from listbox persistent?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Remember selected values from ListBox

Hello,

The values of the related properties are overwritten since they are dynamically populated. In this case, you can use an intermediate property and set it as a persistent one.

During the first time install, you set the intermediate property with value of the listbox. During an upgrade, you set the property of the listbox with the value of the intermediate property.
By the way, you should consider the scenario where the website or the SQL server used in previous installation is not available any more when performing the upgrade. In this case, the listbox will contain incorrect data.
You can also take a look on the How do I determine if an Upgrade is being performed? article which may be useful to you.

If you need any help, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dejx
Posts: 10
Joined: Sun Jul 26, 2015 12:51 pm
Contact: Website Skype Twitter

Re: Remember selected values from ListBox

Do you guys have any example for this, just a simple aip.

If i'm doing silent install, is there any special things i have to be aware when loading this values. If i hook myself up on the dialogs events, what happens in the silent install?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Remember selected values from ListBox

Hello,
Do you guys have any example for this, just a simple aip.
I'm afraid we don't have any samples regarding your scenario. However, in case you encounter any difficulty, please do not hesitate to contact me and I will gladly assist.
If i'm doing silent install, is there any special things i have to be aware when loading this values. If i hook myself up on the dialogs events, what happens in the silent install?
Since there will be no UI (silent installation), the published events from the installer dialogs will not be executed.

Please note that only the custom actions from the Install Execution Stage will be executed during a silent installation.

If you need any help, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dejx
Posts: 10
Joined: Sun Jul 26, 2015 12:51 pm
Contact: Website Skype Twitter

Re: Remember selected values from ListBox

Can i get a sample, please?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Remember selected values from ListBox

Hello,

Starting with the 12.4 version of Advanced Installer released on September 7th, 2015, you can create the property attached to the control as persistent in the Install Parameters page and the selected IIS Browse and SQL Browse value will be remembered for a secund run.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”