Skip to content

Instantly share code, notes, and snippets.

@artdrozdov
Last active August 29, 2015 14:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artdrozdov/f7a747619d0e2ef74e01 to your computer and use it in GitHub Desktop.
Save artdrozdov/f7a747619d0e2ef74e01 to your computer and use it in GitHub Desktop.
DevEnv install using Chocolatey
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(`
[Security.Principal.WindowsBuiltInRole] "Administrator"))
{
Write-Warning "You do not have Administrator rights to run this script!`nPlease re-run this script as an Administrator!"
Break
}
Write-Host "Hi Art! I will install your working environment."
$answer = Read-Host "Continue? (y/n)"
if($answer -eq "y"){
Write-Host "Processing..."
Write-Host "Installing chocolatey..."
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
cinst dotnet3.5 dotnet4.0 dotnet4.5.2 visualstudiocommunity2013 firefoxesr f.lux google-chrome-x64 googledrive evernote resharper-platform pgadmin3 sourcetree git githubforwindows sublimetext3 python skype aimp -y
Write-Host "DevEnv installation complete!"
} else {
Write-Host "Quiting..."
}
@jpoehls
Copy link

jpoehls commented Apr 23, 2015

Just FYI, -eq is case insensitive so you could simplify your $answer -eq "y" check.

@artdrozdov
Copy link
Author

Oh, thanks. Fixed that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment