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: 8238
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”