SQL Server 2012 doesn't install silently in Ad

2019-09-11 15:40发布

问题:

My program needs SQL Server 2012 Express. So I added "Microsoft SQL Server 2012 Express" in feature-based as you can see here :

I need to install the SQL Server Express in the background without any wizard installation so I added these parameters to my setup file :

SQLEXPR_x64_ENU.exe /qs /ACTION=Install /FEATURES=SQLENGINE 
      /INSTANCENAME=SQLEXPRESS /SQLSVCACCOUNT="NT AUTHORITY\SYSTEM"      
      /SQLSYSADMINACCOUNTS="Builtin\Administrators"     
      /AGTSVCACCOUNT="NT AUTHORITY\Network Service" 

I added these parameters to install command lines textboxes. As you can see here:

But when I build the project and install the setup file, SQL Server Express doesn't get installed - why?

Best regards

回答1:

You cannot install SQL Server as a feature-based prerequisite because of the changes its own installer does on the machine. In the online user guide from Advanced Installer you can find a guide on other options to install SQL Server Express with your application