我下载了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
时(即没有处于安静模式),那么安装工作正常。
有谁知道什么可能导致安静模式失败?
感谢。
答案 0 :(得分:1)
创建本地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“