feat: SQL2008R2.SMO 10.50.1600.0
- 10.50.1600.1 because zippy1981 bungled the pushed packages
This commit is contained in:
30
SQL2008R2.SMO/SQL2008R2.SMO.nuspec
Normal file
30
SQL2008R2.SMO/SQL2008R2.SMO.nuspec
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0"?>
|
||||
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<metadata>
|
||||
<id>SQL2008R2.SMO</id>
|
||||
<title>Microsoft SQL Server 2008 R2 Management Objects</title>
|
||||
<version>10.50.1600.1</version>
|
||||
<authors>Microsoft</authors>
|
||||
<owners>zippy1981</owners>
|
||||
<summary>Microsoft SQL Server 2008 R2 Feature Pack, October 2011 - 10.50.1600.1
|
||||
|
||||
The SQL Server Management Objects (SMO) is a .NET Framework object model that enables software developers to create client-side applications to manage and administer SQL Server objects and services. This object model will work with SQL Server 2000, SQL Server 2005, SQL Server 2008 and SQL Server 2008 R2.</summary>
|
||||
<description>The SQL Server Management Objects (SMO) is a .NET Framework object model that enables software developers to create client-side applications to manage and administer SQL Server objects and services. This object model will work with SQL Server 2000, SQL Server 2005, SQL Server 2008 and SQL Server 2008 R2.</description>
|
||||
<projectUrl>http://www.microsoft.com/en-us/download/details.aspx?id=16978</projectUrl>
|
||||
<tags>SQL SQL2008R2 SMO .NET XML CLR</tags>
|
||||
<!-- Eula is in installer
|
||||
<licenseUrl></licenseUrl>
|
||||
-->
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<iconUrl>https://github.com/Iristyle/ChocolateyPackages/raw/master/SQL2008.SMO/SQL2008.png</iconUrl>
|
||||
<releaseNotes></releaseNotes>
|
||||
<dependencies>
|
||||
<dependency id="MSXML6.SP1" />
|
||||
<dependency id="SQL2008R2.NativeClient" />
|
||||
<dependency id="SQL2008R2.ClrTypes" />
|
||||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="tools\**" target="tools" />
|
||||
</files>
|
||||
</package>
|
28
SQL2008R2.SMO/tools/chocolateyInstall.ps1
Normal file
28
SQL2008R2.SMO/tools/chocolateyInstall.ps1
Normal file
@@ -0,0 +1,28 @@
|
||||
$package = 'SQL2008R2.SMO'
|
||||
|
||||
try {
|
||||
$params = @{
|
||||
packageName = $package;
|
||||
fileType = 'msi';
|
||||
silentArgs = '/quiet';
|
||||
url = 'http://download.microsoft.com/download/B/6/3/B63CAC7F-44BB-41FA-92A3-CBF71360F022/1033/x86/SharedManagementObjects.msi';
|
||||
url64bit = 'http://download.microsoft.com/download/B/6/3/B63CAC7F-44BB-41FA-92A3-CBF71360F022/1033/x64/SharedManagementObjects.msi';
|
||||
}
|
||||
|
||||
Install-ChocolateyPackage @params
|
||||
|
||||
# install both x86 and x64 editions of SMO since x64 supports both
|
||||
# to install both variants of powershell, both variants of SMO must be present
|
||||
$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
|
||||
}
|
26
SQL2008R2.SMO/tools/chocolateyUninstall.ps1
Normal file
26
SQL2008R2.SMO/tools/chocolateyUninstall.ps1
Normal file
@@ -0,0 +1,26 @@
|
||||
# HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\
|
||||
$msiId = '{B692E59A-055C-43B7-BE0A-9C2FE0AB88B6}'
|
||||
$msiId64 = '{F10ADDB9-839B-448B-BD2E-3BCB5C1E4B55}'
|
||||
|
||||
$package = 'SQL2008R2.SMO'
|
||||
|
||||
$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
|
||||
}
|
Reference in New Issue
Block a user