feat: SQL2008.NativeClient uninstaller / bump ver

This commit is contained in:
Iristyle
2013-07-23 20:44:47 -04:00
parent d48507f0bb
commit 898f8dee5b
2 changed files with 27 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
<metadata>
<id>SQL2008.NativeClient</id>
<title>Microsoft SQL Server 2008 Native Client</title>
<version>10.00.2531.00</version>
<version>10.00.2531.01</version>
<authors>Microsoft</authors>
<owners>Ethan Brown</owners>
<summary>Microsoft SQL Server 2008 Feature Pack, April 2009

View File

@@ -0,0 +1,26 @@
# HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\
$msiId = '{4F44B5AE-82A6-4A8A-A3E3-E24D489728E3}'
$msiId64 = '{BBDE8A3D-64A2-43A6-95F3-C27B87DF7AC1}'
$package = 'SQL2008.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
}