Skip to content

Instantly share code, notes, and snippets.

@darbio
Last active January 15, 2016 00:14
Show Gist options
  • Save darbio/ee91f1ad172433769450 to your computer and use it in GitHub Desktop.
Save darbio/ee91f1ad172433769450 to your computer and use it in GitHub Desktop.
Development machine (VS 2015, Node, Python)

What is it

This is a powershell script that will install chocolatey onto a new Windows machine, set the folder options to view all files and then install the following packages for a fresh development enviromnment:

  • Dot Net frameworks 3.5-4.6.1 (inclusive)

  • git

  • VS Code

  • VS 2015 pro

  • Node

  • Python 2

  • Resharper Ultimate

  • ConEmu

  • Source Tree

  • NCrunch

  • Google Chrome

  • Fiddler 4

  • IIS Webserver

How to use

  • Open a powershell as admin
  • Run: Set-ExecutionPolicy Unrestricted
  • Run: iex ((new-object net.webclient).DownloadString('https://gist.github.com/darbio/ee91f1ad172433769450/raw/install.ps1'))
# Relax...
# Run this before you run the rest
# Set-ExecutionPolicy Unrestricted
# Set folder options to
# * View hidden files
# * Unhide file extensions
# * Show 'super hidden'
$key = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
Set-ItemProperty $key Hidden 1
Set-ItemProperty $key HideFileExt 0
Set-ItemProperty $key ShowSuperHidden 1
Stop-Process -processname explorer
# Chocolatey
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))
$env:PATH=$env:PATH;$env:ALLUSERSPROFILE+'\chocolatey\bin;C:\tools\python2;'
# set choco config
choco feature enable -n allowGlobalConfirmation
# frameworks
choco install dotnet3.5
choco install dotnet4.0
choco install dotnet4.5
choco install dotnet4.5.1
choco install dotnet4.5.2
choco install dotnet4.6
choco install dotnet4.6.1
# install choco applications
# dotnet
choco install git
choco install visualstudiocode
#choco install visualstudio2015professional --version 14.0.23107.0
choco install visualstudio2015professional -pre
#choco install mssqlservermanagementstudio2014express
# node
choco install nodejs
# python 2.7
choco install python2
#tools
choco install resharper-platform
choco install conemu
choco install sourcetree
choco install ncrunch-vs2015
#choco install robomongo
choco install googlechrome
choco install fiddler4
#IIS
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole
@wenisman
Copy link

instead of putting the -y on all the choco commands have you tried

choco feature enable -n allowGlobalConfirmation

@wenisman
Copy link

  • should probably remove robo mongo
  • as microsoft is removing support for .net v4, 4.5, 4.5.1 we should probably remove that too. if you have to install these then it is an indication that the project needs to be updated to a supported version of .net
  • might be a good idea to add notepad++ in or atom.io

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