AI 14.8 DOESN'T ACCEPT SILENT INSTALL OF SQL EXPRESS 2017 ? - Advanced Installer Community
caxama
Posts: 13
Joined: Tue Mar 22, 2011 4:48 am

AI 14.8 DOESN'T ACCEPT SILENT INSTALL OF SQL EXPRESS 2017 ?

Hello there

I am creating a project to install my app and it needs the SQL Express. When I use as prerrequisite the SQL Express 2017 and then compile my AD project , it turns out OK (compiles with no error ). But when I run it , the instalation crashes. I use this command line in the project :

/QS /ACTION=INSTALL /ADDCURRENTUSERASSQLADMIN /BROWSERSVCSTARTUPTYPE=Automatic /FEATURES=SQL /IACCEPTSQLSERVERLICENSETERMS /INSTANCENAME=MYPROJECT /NPENABLED=1 /SECURITYMODE=SQL /SQLSVCSTARTUPTYPE=Automatic /SAPWD=Admin2018 /TCPENABLED=1

However if I omit the /Q or /QS it installs well, HOWEVER, only with the instance name of SQLEXPRESS, and I want to use my own instance name ( is that by design ? it seems that at command level now I can not use my own instance name ) I was using the AI 13.1 with SQL Express 2008 R2 and it allows silent install and my own instance name.

Or perhaps I am doing something wrong ? , thank you for your prompt help

Juan
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: AI 14.8 DOESN'T ACCEPT SILENT INSTALL OF SQL EXPRESS 2017 ?

Hello Juan,

This happens because the predefined SQL Server 2017 prerequisite is the web installer setup which Microsoft delivers. This setup package does not accept your command line. If you manually download the related SQL web installer and launch it with your command line you will see it fails.

The command line you are testing will work instead with the original setup package which you can download with the help of the web installer. For instance, you can use the SQL web installer to download the original SQL setup file and add the downloaded SQL setup file as a prerequisite to your setup project. Then use the related command line for the downloaded SQL prerequisite setup.

As an alternative solution, you can try to create an use a configuration file for the predefined SQL web installer prerequisite.

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

Return to “Common Problems”