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 に答える