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!

Landry
Posts: 1
Joined: Thu Oct 15, 2015 3:53 pm

Unknown number of parameter

Hi,
I am currently reviewing Advanced Installer to know if it can do what we need for our ASP.Net application.
I've tried a bunch of features with the tutorials help and 2 points remain.


First, our application can use multiple SQL Server databases. It means defining multiple connection strings.
I managed to add a dialog and linked its properties to the right config file use the xml file feature.
The thing I'm missing is how to let the end user add multiple connection strings.
I tried using a listbox with a button but I can't find how to set this scenario : when the user click on the button, thre connection string is stored in the listbox and the form is emptied.
If you can answer this or show me another way to achieve this...


I haven't really look for the second point yet but since I'm here...
We made a console application to upgrade the database(s) configured.
Ideally, this application should launch after the application is successfully installed.
Right now, the application needs to be executed once for each database with the name of the connection string as a parameter (this can be changed for a better use with the installer).
The question is : how can I set an external tool to be executed after the installation success (with parameters) and, eventually, go back to the installer with a return value ?

Sorry for the long post, hope I've been clear.
Thanks for your advices.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Unknown number of parameter

Hello and welcome to our forums,
The thing I'm missing is how to let the end user add multiple connection strings.
I tried using a listbox with a button but I can't find how to set this scenario : when the user click on the button, thre connection string is stored in the listbox and the form is emptied.
If you can answer this or show me another way to achieve this...
To achieve this you can use our predefined custom actions to populate listbox controls. Also, please take a look on our "Execute custom action on button push" article which exposes how a custom action can be triggered by a button event. Let us know if this helped, otherwise please send us your current .aip (project file) by email to support at advancedinstaller dot com and give us a more detailed description of the behavior you want to implement.
The question is : how can I set an external tool to be executed after the installation success (with parameters) and, eventually, go back to the installer with a return value ?
As a starting point for this you can take a look over our "Launch file after installation" article.

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

Return to “Building Installers”