Matt Clarke
Posts: 1
Joined: Tue Feb 05, 2013 4:00 pm

Install SQL express depending on user selction in dialogs

Hi,

My installer contains a dialog window which has two selection options - "System install" or "client install". If a user selects "System install" then a full installation occurs, including SQL server 2008 r2 express sp2 as a silent install. If the user selects "client install", then just some .dll's, config files and .exe's are installed.

Now, the problem I'm having is I only want "SQL server 2008 r2 express sp2" to install on the "System install" option. Currently I'm installing SQL express on both types of install.

NB: As the "System install" installs SQL scripts, "SQL server 2008 r2 express sp2" cannot be installed as a post install or as a custom action. I've currently set it in the prerequisites, but I can't figure out what condition needs to be set to allow the SQL only to be installed when the user selects "System install".
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Install SQL express depending on user selction in dialog

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to achieve what you want you can add the "SQL Server 2008 R2 Express SP2" package as feature-based prerequisite to your project. Then, from "Organization" page, you can condition the prerequisite feature installation. Please take a look on our "Show a custom feature selection dialog" article.

Let us know if this helped.

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

Return to “Building Installers”