简体   繁体   English

安装SQL Sever 2008 R2本机客户端无法正常工作

[英]Installing SQL Sever 2008 R2 Native Client Not Working

I'm struggling to install SQL Server 2008 R2 Native Client using MSIExec through VBScript. 我正在努力通过VBScript使用MSIExec安装SQL Server 2008 R2本机客户端。 I'm trying to complete the installation without the user needing to interact with the installer but I'm getting the error message The required IACCEPTSQLNCLILICENSETERMS=YES command-line parameter is missing. 我正在尝试完成安装,而无需用户与安装程序进行交互,但是我收到错误消息The required IACCEPTSQLNCLILICENSETERMS=YES command-line parameter is missing.

I'm trying to execute the code as below (which obviously incorporates the required parameter!) but I'm still getting the error message. 我正在尝试执行以下代码(显然包含了必需的参数!),但仍收到错误消息。 Can anybody see what I'm doing wrong? 有人可以看到我在做什么吗?

Dim wShell

Set wShell = WScript.CreateObject("WScript.Shell") 

wShell.Run "msiexec.exe /i C:\sqlncli.msi /qb IACCEPTSQLNCLILICENSETERMS=YES"
wShell.Run "msiexec.exe /i C:\sqlncli.msi /qb IACCEPTSQLNCLILICENSETERMS="""YES""""

Just to clarify the exact command and outcome, see the picture below: 只是为了阐明确切的命令和结果,请参见下图:

例

From Help 从帮助

Property values that are literal strings must be enclosed in quotation marks. 文字字符串的属性值必须用引号引起来。 Include any white spaces in the string between the marks. 标记之间的字符串中应包含空格。

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

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