Passing a selected value to parameter - 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!

guruvn
Posts: 6
Joined: Tue Mar 08, 2011 2:52 am

Passing a selected value to parameter

Hi All,

I am a new brand with Advanced Installer and I have been creating an deployment package which is able to browse all existing instances of SQL Server in my local network. Those achived data are dumped into a ListBox which being attached to SqlServerBrowseListBox property. Now what I want to do is : pass the selected item within the listBox to a parameter which is defined within Install Parameters Page. So what should I do.

I am looking forward to hearing from you guys soon
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Passing a selected value to parameter

Hello and welcome to the Advanced Installer Forums,

If you want to assign a public property with the selected value of a list box control, you can do so by adding a new "Set Property" published event on the "Next" button of the dialog that contains your list box control. Here is an article that demonstrates this.

However, the list box control holds the selected value in the public property specified in the "Property Name" field from the “Properties” pane. You could use this public property directly throughout your project.

For more information, here are a couple of articles which should clarify any doubt:
http://www.advancedinstaller.com/user-g ... section100
http://www.advancedinstaller.com/user-g ... stbox.html

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
guruvn
Posts: 6
Joined: Tue Mar 08, 2011 2:52 am

Re: Passing a selected value to parameter

Thank you Mihai.petcu. You're really useful!

Return to “Common Problems”