Category Archives: Chocolatey

Move my Chocolatey apps to another PC

Ahh, I have always enjoyed meta programming, so when I was thinking about how to get my Chocolatey apps from one PC to another, the choice was easy: A small Powershell command to create a Powershell script to install my apps somewhere else.

It’s a oneliner that loops the installed Chocolatey apps via the “choco list” command and generates a list of strings.

choco list -lo -r -y | % { "choco install $($_.SubString(0, $_.IndexOf("|"))) -y" } | Out-File Install.ps1

This is how the output looks on my machine:

choco install 7zip -y
choco install 7zip.install -y
choco install beyondcompare -y
choco install chocolatey -y
choco install chocolatey-core.extension -y
choco install chocolateygui -y
choco install docker-for-windows -y
choco install DotNet4.5.2 -y
choco install DotNet4.6.1 -y
choco install Firefox -y
choco install git -y
choco install git.install -y
choco install httrack.app -y
choco install KB2919355 -y
choco install KB2919442 -y
choco install openra -y
choco install PowerBI -y
choco install python3 -y
choco install resharper-platform -y
choco install sabnzbd -y
choco install sharpkeys -y
choco install sublimetext3 -y
choco install visualstudiocode -y
choco install vlc -y
choco install vscode -y
choco install win32diskimager -y
choco install win32diskimager.install -y

Quite easy to setup a new PC, thanks to the power of PowerShell and Chocolatey 🙂