Created
June 5, 2016 05:41
-
-
Save DanijelMalik/172f30ad7394a15eea173262211c57da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param( | |
[switch] $Essentials, | |
[switch] $DevelopmentTools | |
) | |
function Install-ChocoPackages() | |
{ | |
param( | |
[string[]] $Packages | |
) | |
foreach ($package in $Packages) | |
{ | |
&cmd /c choco upgrade $package -y | |
} | |
} | |
$EssentialPackages = @("opera", "skype", "notepadplusplus.install", "snagit", "7zip.install", "ccleaner") | |
$DevelopmentPackages = @("git", "github", "nodejs.install", "fiddler4", "resharper", "dotpeek", "windowsazurepowershell", "visualstudiocode", "typescript-vs2015", "wixtoolset", "araxismerge") | |
if ($Essentials) | |
{ | |
Install-ChocoPackages -Packages $EssentialPackages | |
} | |
if ($DevelopmentTools) | |
{ | |
Install-ChocoPackages -Packages $DevelopmentPackages | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment