Skip to content

Instantly share code, notes, and snippets.

@drewsmith
Last active August 2, 2016 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drewsmith/39c1dc8bf85838813161dc60c023daed to your computer and use it in GitHub Desktop.
Save drewsmith/39c1dc8bf85838813161dc60c023daed to your computer and use it in GitHub Desktop.
Chocolatey Device Setup
@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