Last active
August 29, 2015 14:19
-
-
Save artdrozdov/f7a747619d0e2ef74e01 to your computer and use it in GitHub Desktop.
DevEnv install using Chocolatey
This file contains hidden or 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
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..." | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just FYI,
-eq
is case insensitive so you could simplify your$answer -eq "y"
check.