Force installing both x86 and x64 on x64 OS
Both sets of Clr types are needed by dependendencies such as SMO
This commit is contained in:
@@ -3,10 +3,12 @@
|
||||
<metadata>
|
||||
<id>SQL2008.ClrTypes</id>
|
||||
<title>Microsoft SQL Server System CLR Types</title>
|
||||
<version>10.00.1600.22</version>
|
||||
<version>10.00.1600.23</version>
|
||||
<authors>Microsoft</authors>
|
||||
<owners>Ethan Brown</owners>
|
||||
<summary>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.</summary>
|
||||
<summary>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.</summary>
|
||||
<description>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.</description>
|
||||
<projectUrl>http://www.microsoft.com/en-us/download/details.aspx?id=16177</projectUrl>
|
||||
<tags>SQL SQL2008 .NET CLR</tags>
|
||||
|
@@ -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)"
|
||||
|
Reference in New Issue
Block a user