SQL Server 2012/2014在安静模式下运行时,WS2012 R2上的Express setup.exe失败

时间:2017-02-03 00:43:39

标签: sql-server sql-server-2012 sql-server-express sql-server-2012-express sql-server-2014-express

我下载了SQLEXPR_x64_ENU.exe并将其内容(/X选项)提取到临时文件夹中。然后我尝试以安静模式运行setup.exe。不幸的是,设置失败了。

以下是我用来安装服务器的命令行及其生成的输出:

C:\temp>%temp%\sqltemp\Setup.exe /q /ACTION=Install /FEATURES=SQLEngine 
       /INSTANCENAME=SQLEXPRESS 
       /SQLSVCACCOUNT="NT AUTHORITY\Network Service" 
       /SQLSYSADMINACCOUNTS="Builtin\Administrators" 
       /AGTSVCACCOUNT="NT AUTHORITY\Network Service" 
       /IACCEPTSQLSERVERLICENSETERMS


Microsoft (R) SQL Server 2014 12.00.2000.08
Copyright (c) Microsoft Corporation.  All rights reserved.

发生以下错误:

  

无法加载一个或多个请求的类型。检索LoaderExceptions属性以获取更多信息。

     

错误结果:-2068774911
     结果设施代码:1201
     结果错误代码:1

     

请查看summary.txt日志了解更多详情

安装失败时找不到summary.txt日志文件。但是,我发现SqlSetup.txt有以下内容(摘录):

[...]
02/02/2017 16:56:43.126 Attempting to get execution timestamp
02/02/2017 16:56:43.126 Timestamp: 20170202_165642
02/02/2017 16:56:43.126 Attempting to run user requested action from media ScenarioEngine.exe
02/02/2017 16:56:43.126 Attempting to launch process C:\Users\ADMINI~1\AppData\Local\Temp\sqltemp\x64\ScenarioEngine.exe
02/02/2017 16:56:46.423 Process returned exit code: 0x84B10001
02/02/2017 16:56:46.423 Media ScenarioEngine.exe returned exit code: 0x84B10001
02/02/2017 16:56:46.423 Attempting to load .Net security policy file C:\Windows\Microsoft.NET\Framework64\v4.0.30319\\CONFIG\security.config
02/02/2017 16:56:46.423 Attempting to remove .Net security code group node 
[...]

我尝试了SQL Server Express 2012和2014,但都失败并出现同样的错误。

当我在没有任何参数的情况下运行相同的setup.exe时(即没有处于安静模式),那么安装工作正常。

有谁知道什么可能导致安静模式失败?

感谢。

1 个答案:

答案 0 :(得分:1)

  1. 尝试使用“/ FEATURES = SQL”
  2. 尝试使用SQL安全性:“/ SAPWD = MyStrongSAPassword2016 / SECURITYMODE = SQL”
  3. 创建本地SQL管理员帐户并在设置行中使用它(例如:WinCore \ CoreAdmin +密码:LocalAdmin2016)

    请参阅适用于标准/企业的示例代码:

    d:\ SETUP.EXE / ACTION =安装/ Q / IAcceptSQLServerLicenseTerms / SAPWD = MyStrongSAPassword2016 / SECURITYMODE = SQL / FEATURES = SQL / SQLSVCACCOUNT = “WinCore \ CoreAdmin”/ SQLSVCPASSWORD = “LocalAdmin2016”/ SQLSYSADMINACCOUNTS =“WinCore \ CoreAdmin “/ AGTSVCACCOUNT =”WinCore \ CoreAdmin“/ AGTSVCPASSWORD =”LocalAdmin2016“/ ASSYSADMINACCOUNTS =”WinCore \ CoreAdmin“