diff --git a/SQL2008.Powershell/SQL2008.Powershell.nuspec b/SQL2008.Powershell/SQL2008.Powershell.nuspec new file mode 100644 index 0000000..ba7adfb --- /dev/null +++ b/SQL2008.Powershell/SQL2008.Powershell.nuspec @@ -0,0 +1,35 @@ + + + + SQL2008.Powershell + Microsoft Windows PowerShell Extensions for SQL Server + 10.00.2531.00 + Microsoft + Ethan Brown + 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. + 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. + http://www.microsoft.com/en-us/download/details.aspx?id=3522 + SQL SQL2008 .NET CLR Powershell SMO + + false + https://github.com/Iristyle/ChocolateyPackages/raw/master/SQL2008.SMO/SQL2008.png + + + + + + + + + + diff --git a/SQL2008.Powershell/tools/chocolateyInstall.ps1 b/SQL2008.Powershell/tools/chocolateyInstall.ps1 new file mode 100644 index 0000000..8d382da --- /dev/null +++ b/SQL2008.Powershell/tools/chocolateyInstall.ps1 @@ -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 +}