litu
Posts: 71
Joined: Fri Mar 22, 2013 2:57 pm

Run SQL Scripts depending on a feature check

Hello,

I have an installation with four features, one of them is called "DB" because we want to allow the users to install the IIS part on a server and the SQL part on another one.

How can I select to run the SQL Scripts depending on the check of the feature that the user sees in the ConfigureDlg?

What I need is: if the user has unmarked the chek of the DB feature, the SQL Scripts won't run; and if the user has cheked the DB feature on the ConfiugureDlg, the SQL Scripts will run.

Is that possible?

Thanks in advance.
Arnau.
Bogdan
Posts: 2794
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Run SQL Scripts depending on a feature check

Hi Arnau,

Yes, this is possible and very easy to do.

Just go to SQL Scripts page and select your script, then press on the button "..." from the Condition field.
This will show you a new dialog that has a set of predefined conditions, select the first one related to features,
as visible in the attached screenshot.

Best regards,
Bogdan
Attachments
sqlScripts.png
sqlScripts.png (94.05 KiB) Viewed 2611 times
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
litu
Posts: 71
Joined: Fri Mar 22, 2013 2:57 pm

Re: Run SQL Scripts depending on a feature check

Thanks a lot!

I couldn't find the right help page that explains the features conditions.

Thanks again.
Arnau.

PS: Please, Caphyon CEO, raise the salary of the support staff! They are amazing: they are always there with a polite, right and quick answer.

Return to “Building Installers”