feat: SQL2008R2.PowerShell 10.50.1600.0

- 10.50.1600.1 because zippy1981 bungled the pushed packages
This commit is contained in:
Justin Dearing
2013-01-17 05:50:56 -05:00
committed by Iristyle
parent 2833729373
commit b975af5926
3 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
# HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\
$msiId = '{8155DEBB-1BBC-4D15-A051-B3ADE07BF7B8}'
$msiId64 = '{DF5CF4FB-6D4E-4187-8456-06AC57E15214}'
$package = 'SQL2008R2.PowerShell'
$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
}