Last active
April 22, 2024 13:24
-
-
Save erikbye/f248c744d4ae925de92bb436c3d3afae to your computer and use it in GitHub Desktop.
Simple PowerShell script for installing Chocolatey and a a bunch of software I use
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$cachefolder = "c:\temp\chocolatey_cache" | |
$logfolder = "c:\temp" | |
if (!(Test-Path -Path $cachefolder)) { | |
New-Item -ItemType Directory -Force -Path $cachefolder | Out-Null | |
} | |
Set-Location -Path $logfolder | |
$choco = Get-Command -Name "choco" -ErrorAction Ignore; | |
if (!$choco) { | |
Write-Host "Chocolatey not installed (or not in path), installing ..." -ForegroundColor Green | |
Set-ExecutionPolicy Bypass -Scope Process -Force; Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
} | |
Start-Process -NoNewWindow -Wait "choco" -ArgumentList "feature enable -n allowGlobalConfirmation" | |
$software = @( | |
"autohotkey", | |
"firefox", | |
"steam", | |
"emacs", | |
"neovim", | |
"vim", | |
"vscode", | |
"python", | |
"yt-dlp", | |
"7zip", | |
"zerotier-one", | |
"plex", | |
"gow" | |
"powertoys", | |
"git", | |
"qbittorrent", | |
"vlc", | |
"epicgameslauncher", | |
"blender", | |
"protonvpn", | |
"protonmailbridge", | |
"geforce-experience", | |
"audacity", | |
"ffmpeg", | |
"ditto", | |
"nerdfont-hack", | |
"nerd-fonts-FiraCode", | |
"nerd-fonts-CascadiaCode", | |
"nerd-fonts-SourceCodePro", | |
"nerd-fonts-Terminus", | |
"nerd-fonts-FiraMono", | |
"nerd-fonts-3270", | |
"nerd-fonts-AnonymousPro", | |
"nerd-fonts-DroidSansMono", | |
"nerd-fonts-iA-Writer", | |
"nerd-fonts-IosevkaTerm", | |
"nerd-fonts-Iosevka" | |
) | |
Write-Host "[Chocolatey] Installing packages, logging to $logfolder\chocolatey.log ..." -ForegroundColor Blue | |
Start-Process -NoNewWindow -Wait -FilePath "choco" -ArgumentList "install $software --log-file=$logfolder\chocolatey.log --allowunofficial --cache=$cachefolder --ignore-checksums --limitoutput" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment