SQL 2008 Powershell Extensions 10.00.2531.00

This commit is contained in:
Iristyle
2012-10-13 08:43:40 -04:00
parent 6cdabf1e2d
commit cf070185ce
2 changed files with 62 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<?xml version="1.0"?>
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<metadata>
<id>SQL2008.Powershell</id>
<title>Microsoft Windows PowerShell Extensions for SQL Server</title>
<version>10.00.2531.00</version>
<authors>Microsoft</authors>
<owners>Ethan Brown</owners>
<summary>Microsoft SQL Server 2008 Feature Pack, April 2009
The Microsoft Windows PowerShell Extensions for SQL Server includes a provider and a set of cmdlets that enable administrators and developers to build PowerShell scripts for managing instances of SQL Server.</summary>
<description>Microsoft SQL Server 2008 Feature Pack, April 2009
The Microsoft Windows PowerShell Extensions for SQL Server includes a provider and a set of cmdlets that enable administrators and developers to build PowerShell scripts for managing instances of SQL Server. The SQL Server PowerShell Provider delivers a simple mechanism for navigating SQL Server instances that is similar to file system paths. PowerShell scripts can then use the SQL Server Management Objects to administer the instances. The SQL Server cmdlets support operations such as executing Transact-SQL scripts or evaluating SQL Server policies.
Note: Windows PowerShell Extensions for SQL Server requires SQL Server 2008 Management Objects, and PowerShell, which will both be installed if necessary.</description>
<projectUrl>http://www.microsoft.com/en-us/download/details.aspx?id=3522</projectUrl>
<tags>SQL SQL2008 .NET CLR Powershell SMO</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="SQL2008.SMO" />
<!-- can't run choc without powershell!
<dependency id="powershell" />
-->
</dependencies>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>

View File

@@ -0,0 +1,27 @@
$package = 'SQL2008.Powershell'
try {
$params = @{
packageName = $package;
fileType = 'msi';
silentArgs = '/quiet';
url = 'http://download.microsoft.com/download/0/E/6/0E67502A-22B4-4C47-92D3-0D223F117190/PowerShellTools.msi';
url64bit = 'http://download.microsoft.com/download/A/D/0/AD021EF1-9CBC-4D11-AB51-6A65019D4706/PowerShellTools.msi';
}
Install-ChocolateyPackage @params
# install both x86 and x64 editions since x64 PS supports both
$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
}