Even though the Windows operating system is one of the best in my opinion, there are always something which is only available in a different OS. For example the apt-get functionality in Linux. I don’t know how this works exactly, but from my basic understanding it’s some kind of repository with a lot of software and libraries which you can download to your device by typing something like the following in a terminal window:
Why this feature isn’t available by default in Windows is a mystery to me.
Quite some time ago, Scott Hanselman blogged about Chocolatey. Chocolatey is something similar to the apt-get feature from Linux, but now available on a Windows machine. (disclaimer: it’s not really the same, but works for me)
Ever since reading this post I wanted to use this awesome piece of software, but all my systems were already up-to-date and never needed it. As of this week, I’ve started working on a new project. Therefore, a new virtual machine had to be installed and configured. An awesome excuse to start using Chocolatey!
With Chocolatey you can install all kinds of software, just by typing a command in your Command Prompt or PowerShell window. It will automatically download and install the software for you. The only thing you need to do is wait for the command to finish.
Installing Chocolatey is easy also, just open up a command prompt window and copy-paste the install text from the homepage to your window. After the installation has finished, the window will look something like this.
Now you are ready for the real fun, installing software via scipting!
Visual Studio 2010 was already installed on my development machine, so I had to think of something else which is necessary. My choice was ReSharper. If you are unfamiliar with the Chocolatey commands for installing this software, just head up to the website, search for the software in the search box and everything is explained as the search results show the exact commands you need to install the software.
Installing ReSharper can be done by just typing the following in the command prompt window:
Hit [Enter] and wait.
When finished, the gods are thanked appropriately and the software is good to go.
Of course, you don’t want to install all your development software manually via the prompt window. Therefore, it’s also possible to script it!
I’ve created a small Install.ps1 and placed it in a DropBox folder, so I can use it everywhere. The contents look like this.
# Install Visual Studio 2012 Ultimate cinst VisualStudio2012Ultimate # Install Visual Studio 2012 Update 4 cinst VS2012.4 # Install Visual Studio 2013 Ultimate cinst VisualStudio2013Ultimate # Install ReSharper cinst resharper # Install Notepad++ cinst notepadplusplus # Install Fiddler cinst fiddler # Install FileZilla cinst filezilla # Install SQL Server 2012 Express cinst SqlServer2012Express # Install KeePass cinst keepass # Install Spotify cinst spotify # Install GitHub for Windows cinst githubforwindows # Install VLC Player cinst vlc # Install Beyond Compare cinst beyondcompare # Install dotPeek cinst dotPeek # Install dotTrace cinst dotTrace # Install Remote Desktop Connection Manager cinst rdcman # Install Sublime Text 2 cinst sublimetext2 # Install PowerGUI cinst PowerGUI # Install TreeSize cinst treesizefree # Install DropBox cinst dropbox # Install Google Drive cinst googledrive # Install SkyDrive cinst SkyDrive # Install Google Chrome cinst GoogleChrome # Install Mozilla Firefox cinst Firefox
There’s probably much more to Chocolatey, but this what I’ve figured out so far. It’s too bad not all software is supported for Chocolatey yet, but it’s a great start. Most software you need is already in the repository and you can add new packages yourself on the website.