feat: SQL2008R2.NativeClient 10.50.1600.0

- 10.50.1600.2 because zippy1981 bungled the pushed packages
This commit is contained in:
Iristyle
2013-07-23 20:53:58 -04:00
parent 9137d9f777
commit f2503cab7a
3 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?xml version="1.0"?>
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<metadata>
<id>SQL2008R2.NativeClient</id>
<title>Microsoft SQL Server 2008 R2 Native Client</title>
<version>10.50.1600.2</version>
<authors>Microsoft</authors>
<owners>zippy1981</owners>
<summary>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.</summary>
<description>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.</description>
<projectUrl>http://www.microsoft.com/en-us/download/details.aspx?id=16978</projectUrl>
<tags>SQL SQL2008R2 Native Client ODBC OLEDB</tags>
<!-- Eula is in installer
<licenseUrl></licenseUrl>
-->
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>https://github.com/Iristyle/ChocolateyPackages/raw/master/SQL2008.SMO/SQL2008.png</iconUrl>
<releaseNotes></releaseNotes>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>

View File

@@ -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
}

View File

@@ -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
}