feat: SQL2008R2.ClrTypes 10.50.1600.0

- 10.50.1600.1 because zippy1981 bungled the pushed packages
This commit is contained in:
Iristyle
2013-07-23 20:50:27 -04:00
parent ee03852306
commit 9137d9f777
3 changed files with 80 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
$package = 'SQL2008R2.ClrTypes'
try {
$params = @{
packageName = $package;
fileType = 'msi';
silentArgs = '/quiet';
url = 'http://download.microsoft.com/download/B/6/3/B63CAC7F-44BB-41FA-92A3-CBF71360F022/1033/x86/SQLSysClrTypes.msi';
url64bit = 'http://download.microsoft.com/download/B/6/3/B63CAC7F-44BB-41FA-92A3-CBF71360F022/1033/x64/SQLSysClrTypes.msi';
}
Install-ChocolateyPackage @params
# http://forums.iis.net/p/1174672/1968094.aspx
# it turns out that even on x64, x86 clr types should also be installed
# or SMO breaks
$IsSytem32Bit = (($Env:PROCESSOR_ARCHITECTURE -eq 'x86') -and `
($Env:PROCESSOR_ARCHITEW6432 -eq $null))
if (!$IsSytem32Bit)
{
$params.url64bit = $params.url
Install-ChocolateyPackage @params
}
Write-ChocolateySuccess $package
} catch {
Write-ChocolateyFailure $package "$($_.Exception.Message)"
throw
}