1

I'm struggling to install SQL Server 2008 R2 Native Client using MSIExec through VBScript. 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.

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:

Example

4

1 回答 1

0

从帮助

文字字符串的属性值必须用引号引起来。在标记之间的字符串中包含任何空格。

于 2015-01-13T20:14:16.490 回答