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!

panda78
Posts: 3
Joined: Tue Jun 19, 2018 8:09 am

Installation with optional MSSQL connection

Hi all ,
i have my simple installer and i need to setup optional Db installation.
I create SQL server connection with a .sql script run and i create SQLConnectionDlg but i don't know how to use this event like an optional

Sorry for my bad english :(
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installation with optional MSSQL connection

Hello and welcome to our forums,

To achieve what you want you could add on a previous dialog (before the SQLConnectionDlg dialog) on "Dialogs" page a check box control event which will control the DB installation behavior. When the checkbox is checked its associated property (you can find it on "Properties" right pane after selecting the checkbox control) will be set to a text value, otherwise its property won't be set.

So, you can use the checkbox property to condition the display of SQLConnectionDlg dialog by using the Show only if support. And also to condition the establish operation during install of the SQL Connection added in "SQL Databases" page. You should just add the "CHECKBOX_PROP" property in the "Condition" field.

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

Return to “Building Installers”