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!

hongwei
Posts: 1
Joined: Mon Aug 29, 2016 6:26 am

Optional installing SQL Server 2012 Express

Hi,

We want to let user to choose if to install SQL Server 2012 Express or to use an existed SQL Server through a dialog. I have tried added SQL Server 2012 Express as a feature, but its installation will be hang. And I found it is because the limitation of SQL Server 2012. So it can be installed as a feature. And I also tried add SQL Express as a prerequisite, but these is no way to let user decided if to install or not.
At the end of installation there are another setup.exe (depends on sql server existed) and some SQL scripts needed to be ran, the SQL Server must be installed before them and can't disable "wait for custom action to finish before proceeding".
So http://www.advancedinstaller.com/user-g ... press.html doesn't work for me.

Please instruct me how to implement.


Thanks!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Optional installing SQL Server 2012 Express

Hello and welcome to Advanced Installer forums,

Please note that starting with SQL Server 2008R2 SP2 (up to 2014) the SQL Server setup package cannot be installed as a Feature-based or Post-install software prerequisite due to a SQL Server setup problem. When added as a feature-based or post-install prerequisite the SQL Server installation hangs because the SQL Server setup it attempts to shut down the windows installer service (msiserver). You can read more about this limitation for MSSQL Server 2008R2 and MSSQL Server 2012.

However, its seems that starting with SQL Server 2012 R2 you can include its setup package in your main installation package as a feature-based prerequisite and add the following switch to skip Windows Installer handle check:

Code: Select all

/SkipInstallerRunCheck=1
Note that the SQL setup package needs to be added in your main installation package, you cannot add it from its online location. So, when adding the SQL prerequisite from the predefined list of prerequisites you will be prompted to select if you want to download the prerequisite and include it in your package or using its online location. In this case, you need to select Yes option so that the prerequisite be downloaded and included in the setup package.

A command line for installing silent SQL Server Express 2014 SP1 as a featured-based prerequisite is the following:

Code: Select all

/q /IACCEPTSQLSERVERLICENSETERMS /ACTION=Install /FEATURES=SQLEngine,SSMS /INSTANCENAME=SQLEXPRESS /UpdateEnabled=False/SKIPINSTALLERRUNCHECK=1
If you have other questions, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”