Skip to content

Instantly share code, notes, and snippets.

@tolu
Last active September 13, 2016 07:54
Show Gist options
  • Save tolu/7597355 to your computer and use it in GitHub Desktop.
Save tolu/7597355 to your computer and use it in GitHub Desktop.
One click install of chocolatey and a bunch of nice to have apps.
@echo off
::check if chocolatey is installed
set chocolateyDir=%systemdrive%\chocolatey
IF EXIST %chocolateyDir% goto already-installed
echo installing chocolatey...
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%chocolateyDir%\bin
:: refresh environment variables to be able to call
:: chocolatey commands without restarting the console
call %chocolateyDir%\chocolateyinstall\RefreshEnv.cmd
goto install-components
:already-installed
echo chocolatey already installed. Proceeding...
:install-components
:: all packages available at http://chocolatey.org/packages
echo installing components...
:: dev essentials
call cup javaruntime
call cup python
call cup nodejs.install
call cup PhantomJS
:: Nix-tools
:: https://github.com/bmatzelle/gow/wiki/executables_list
call cup gow
:: standard tools
call cup cmder
call cup lockhunter
call cup ransack
call cup git.install
call cup 7zip.install
:: applications
call cup GoogleChrome
call cup adobereader
call cup ccleaner
call cup dropbox
call cup TortoiseGit
call cup TortoiseSvn
call cup linqpad5
call cup launchy
call cup winscp
call cup notepad2
call cup githubforwindows
call cup vlc
call cup visualstudiocode
call cup picasa
call cup markpad
call cup qbittorrent
call cup spotify
goto done
:: microsoft web platform installer
call cup webpi
call cup webpicommandline
call WebpiCmd /Install /AcceptEULA /Products:NETFramework45,PowerShell3,IISExpress_ByPlatform
:done
echo.
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment