diff --git a/SQL2008R2.NativeClient/SQL2008R2.NativeClient.nuspec b/SQL2008R2.NativeClient/SQL2008R2.NativeClient.nuspec new file mode 100644 index 0000000..46e1846 --- /dev/null +++ b/SQL2008R2.NativeClient/SQL2008R2.NativeClient.nuspec @@ -0,0 +1,25 @@ + + + + SQL2008R2.NativeClient + Microsoft SQL Server 2008 R2 Native Client + 10.50.1600.2 + Microsoft + zippy1981 + Microsoft SQL Server 2008 R2 Feature Pack, October 2011 + + Microsoft SQL Server 2008 R2 Native Client (SQL Server Native Client) is a single dynamic-link library (DLL) containing both the SQL OLE DB provider and SQL ODBC driver. It contains run-time support for applications using native-code APIs (ODBC, OLE DB and ADO) to connect to Microsoft SQL Server 2000, 2005, or 2008. SQL Server Native Client should be used to create new applications or enhance existing applications that need to take advantage of new SQL Server 2008 R2 features. This redistributable installer for SQL Server Native Client installs the client components needed during run time to take advantage of new SQL Server 2008 R2 features, and optionally installs the header files needed to develop an application that uses the SQL Server Native Client API. + Microsoft SQL Server 2008 R2 Native Client (SQL Server Native Client) is a single dynamic-link library (DLL) containing both the SQL OLE DB provider and SQL ODBC driver. It contains run-time support for applications using native-code APIs (ODBC, OLE DB and ADO) to connect to Microsoft SQL Server 2000, 2005, or 2008. SQL Server Native Client should be used to create new applications or enhance existing applications that need to take advantage of new SQL Server 2008 R2 features. This redistributable installer for SQL Server Native Client installs the client components needed during run time to take advantage of new SQL Server 2008 R2 features, and optionally installs the header files needed to develop an application that uses the SQL Server Native Client API. + http://www.microsoft.com/en-us/download/details.aspx?id=16978 + SQL SQL2008R2 Native Client ODBC OLEDB + + false + https://github.com/Iristyle/ChocolateyPackages/raw/master/SQL2008.SMO/SQL2008.png + + + + + + diff --git a/SQL2008R2.NativeClient/tools/chocolateyInstall.ps1 b/SQL2008R2.NativeClient/tools/chocolateyInstall.ps1 new file mode 100644 index 0000000..2873e15 --- /dev/null +++ b/SQL2008R2.NativeClient/tools/chocolateyInstall.ps1 @@ -0,0 +1,18 @@ +$package = 'SQL2008R2.NativeClient' + +try { + $params = @{ + packageName = $package; + fileType = 'msi'; + silentArgs = ' /qb IACCEPTSQLNCLILICENSETERMS=YES'; + url = 'http://download.microsoft.com/download/B/6/3/B63CAC7F-44BB-41FA-92A3-CBF71360F022/1033/x64/sqlncli.ms'; + url64bit = 'http://download.microsoft.com/download/B/6/3/B63CAC7F-44BB-41FA-92A3-CBF71360F022/1033/x64/sqlncli.msi'; + } + + Install-ChocolateyPackage @params + + Write-ChocolateySuccess $package +} catch { + Write-ChocolateyFailure $package "$($_.Exception.Message)" + throw +} diff --git a/SQL2008R2.NativeClient/tools/chocolateyUninstall.ps1 b/SQL2008R2.NativeClient/tools/chocolateyUninstall.ps1 new file mode 100644 index 0000000..3a24dcc --- /dev/null +++ b/SQL2008R2.NativeClient/tools/chocolateyUninstall.ps1 @@ -0,0 +1,26 @@ +# HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\ +$msiId = ' {4AB6A079-178B-4144-B21F-4D1AE71666A2}' +$msiId64 = '{2180B33F-3225-423E-BBC1-7798CFD3CD1F}' + +$package = 'SQL2008R2.NativeClient' + +$IsSystem32Bit = (($Env:PROCESSOR_ARCHITECTURE -eq 'x86') -and ($Env:PROCESSOR_ARCHITEW6432 -eq $null)) + +try { + + $uninstallParams = @{ + PackageName = $package; + FileType = 'MSI'; + SilentArgs = "$msiId /qb"; + ValidExitCodes = @(0) + } + + if ($IsSystem32Bit) { $uninstallParams.SilentArgs = "$msiId64 /qb" } + + Uninstall-ChocolateyPackage + + Write-ChocolateySuccess $package +} catch { + Write-ChocolateyFailure $package "$($_.Exception.Message)" + throw +}