Installing SQL Sever 2008 R2 Native Client Not Working

2.1k Views Asked by At

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

1

There are 1 best solutions below

7
Serenity On

From Help

Property values that are literal strings must be enclosed in quotation marks. Include any white spaces in the string between the marks.