Last active
August 2, 2016 14:25
-
-
Save drewsmith/39c1dc8bf85838813161dc60c023daed to your computer and use it in GitHub Desktop.
Chocolatey Device Setup
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
@echo off | |
set PKGS=(GoogleChrome jdk8 jdk7 ruby git maven awscli chefdk virtualbox vagrant packer synergy SublimeText3 intellijidea-community mysql.workbench spotify slack HipChat) | |
set maven_OPTS=--version=3.3.9 | |
SETLOCAL EnableDelayedExpansion | |
WHERE choco | |
IF %ERRORLEVEL% NEQ 0 ( | |
CALL @powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin | |
CALL refreshenv | |
) | |
for %%package in %PKGS% do ( | |
if defined %%package_OPTS ( | |
CALL choco install -y %%package !%%package_OPTS! | |
) else ( | |
CALL choco install -y %%package | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment