feat: SQL2008.ClrTypes uninstaller / bump ver

This commit is contained in:
Iristyle
2013-07-23 20:41:26 -04:00
parent 1241d70fb2
commit 232d54a9cf
2 changed files with 27 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
# HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\
$msiId = '{C9FD9DF2-D92B-4321-A338-52961FECE249}'
$msiId64 = '{2D766E70-7670-41A8-B370-1E09084ABA5D}'
$package = 'SQL2008.ClrTypes'
$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
}