From 5a73b326eec2dbf3a29085276677d8d55a93bd31 Mon Sep 17 00:00:00 2001 From: Iristyle Date: Fri, 12 Oct 2012 19:15:38 -0400 Subject: [PATCH] Force installing both x86 and x64 on x64 OS Both sets of Clr types are needed by dependendencies such as SMO --- SQL2008.ClrTypes/SQL2008.ClrTypes.nuspec | 6 ++++-- SQL2008.ClrTypes/tools/chocolateyInstall.ps1 | 11 +++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/SQL2008.ClrTypes/SQL2008.ClrTypes.nuspec b/SQL2008.ClrTypes/SQL2008.ClrTypes.nuspec index fe5080c..307c098 100644 --- a/SQL2008.ClrTypes/SQL2008.ClrTypes.nuspec +++ b/SQL2008.ClrTypes/SQL2008.ClrTypes.nuspec @@ -3,10 +3,12 @@ SQL2008.ClrTypes Microsoft SQL Server System CLR Types - 10.00.1600.22 + 10.00.1600.23 Microsoft Ethan Brown - The SQL Server System CLR Types package contains the components implementing the new geometry, geography, and hierarchyid types in SQL Server 2008. This component can be installed separately from the server to allow client applications to use these types outside of the server. + Note: This is really 10.00.1600.22, but had to be version bumped to fix an issue in the package installer. + + The SQL Server System CLR Types package contains the components implementing the new geometry, geography, and hierarchyid types in SQL Server 2008. This component can be installed separately from the server to allow client applications to use these types outside of the server. The SQL Server System CLR Types package contains the components implementing the new geometry, geography, and hierarchyid types in SQL Server 2008. This component can be installed separately from the server to allow client applications to use these types outside of the server. http://www.microsoft.com/en-us/download/details.aspx?id=16177 SQL SQL2008 .NET CLR diff --git a/SQL2008.ClrTypes/tools/chocolateyInstall.ps1 b/SQL2008.ClrTypes/tools/chocolateyInstall.ps1 index c19cb10..2dbd4fc 100644 --- a/SQL2008.ClrTypes/tools/chocolateyInstall.ps1 +++ b/SQL2008.ClrTypes/tools/chocolateyInstall.ps1 @@ -11,6 +11,17 @@ try { 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)"