简体   繁体   English

静默安装SQL Server Express

[英]Install SQL Server Express silently

I am trying to create a .bat file to install SQL Server 2014 Express silently, and with my own options, but each time it runs, it quits in the middle. 我试图创建一个.bat文件以使用我自己的选项以静默方式安装SQL Server 2014 Express,但是每次运行时,它都会在中间退出。

Here is my command: 这是我的命令:

C:> SQLEXPR_x86_EN /ACTION=Install /QS /BROWSERSVCSTARTUPTYPE=Automatic 
           /ADDCURRENTUSERASSQLADMIN=True /IACCEPTSQLSERVERLICENSETERMS 
           /FEATURES=SQLEngine /SQLSVCSTARTUPTYPE=Automatic  
           /INSTANCENAME="MX_SERVER_SQL"  /NPENABLED=1 /TCPENABLED=1 
           /AGTSVCACCOUNT="NT AUTHORITY\Network Service" 
           /SQLSVCACCOUNT="NT AUTHORITY\Network Service" 
           /SQLSYSADMINACCOUNTS=BUILTIN\Administrators /SECURITYMODE=SQL 
           /SAPWD=My_123456

Why does it not run to the end? 为什么它没有结束?

ERROR > The installation starts but somewhere after start to load the files it quits and stops the installation and nothing installed 错误>安装开始,但是在开始加载文件后退出安装并停止安装,没有安装任何东西

It didn't run to the end because it probably encountered a failure during setup! 它没有运行到最后,因为它可能在安装过​​程中遇到了故障! To diagnose setup failures, look at the setup log files . 要诊断安装失败,请查看安装日志文件

Specifically, file path %programfiles%\\Microsoft SQL Server\\120\\Setup Bootstrap\\Log . 具体来说,文件路径为%programfiles%\\Microsoft SQL Server\\120\\Setup Bootstrap\\Log

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM