Last active
February 28, 2024 09:30
-
-
Save Dominicus1165/02ec3d812b627a2dc219990fcead7a8e to your computer and use it in GitHub Desktop.
Winget install script for Windows
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
<# | |
# 0. Windows 10 only: update "App Installer" on Windows Store | |
# | |
# 1. Win+X => A | |
# 2. cd C:\Users\xxx\Desktop or C:\Users\xxx\OneDrive\Desktop if you have OneDrive | |
# 3. Set-ExecutionPolicy Unrestricted | |
# 4. .\Install_Script.ps1 | |
#> | |
<# | |
# -h is a silent install | |
# -i is an interactive install | |
#> | |
<# | |
# Red the list of tools before installing | |
# There are some tools at the bottom. | |
# If you have one of those uncomment it to install during process. | |
#> | |
$installEverything = Read-Host -prompt "Install everything? [y/n]" | |
if ($installEverything -eq 'y' -or $installEverything -eq 'Y' -or !$installEverything) {$installEverything = 1} else {$installEverything = $null} | |
# System programs | |
if (!$installEverything) {$confirmationSystem = Read-Host "Install system programs? [y/n]"} | |
if ($confirmationSystem -eq 'y' -or $confirmationSystem -eq 'Y' -or $installEverything) { | |
"What's your CPU and GPU configuration?" | |
"" | |
"1 = Intel + Nvidia <-- default" | |
"2 = AMD + Nvidia" | |
"" | |
"3 = Intel + AMD" | |
"4 = AMD + AMD" | |
"" | |
$CpuGpuConfiguration = ($v = Read-Host "[1 to 4]") ? $v : 1 | |
switch ($CpuGpuConfiguration) { | |
1 { | |
Write-Host "Selected Intel CPU and Nvidia GPU" -ForegroundColor Cyan | |
winget install -e -s winget --id Intel.IntelDriverAndSupportAssistant -i | |
winget install -e -s winget --id Nvidia.GeForceExperience -i | |
} | |
2 { | |
Write-Host "Selected AMD CPU and Nvidia GPU" -ForegroundColor Cyan | |
winget install -e -s winget --id AMD.RyzenMaster -i | |
winget install -e -s winget --id Nvidia.GeForceExperience -i | |
} | |
3 { | |
Write-Host "Selected AMD CPU and Nvidia GPU" -ForegroundColor Cyan | |
winget install -e -s winget --id Intel.IntelDriverAndSupportAssistant -i | |
Write-Host "AMD Adrenalin was not available on winget when this was created." -ForegroundColor Magenta | |
Start-Sleep -Seconds 2 | |
} | |
4 { | |
Write-Host "Selected AMD CPU and AMD GPU" -ForegroundColor Cyan | |
winget install -e -s winget --id AMD.RyzenMaster -i | |
Write-Host "AMD Adrenalin was not available on winget when this was created." -ForegroundColor Magenta | |
Start-Sleep -Seconds 2 | |
} | |
} | |
winget install -e -s winget --id Microsoft.WindowsTerminal -h # New Windows Terminal | |
winget install PowerToys -s msstore --accept-package-agreements # Powerful tool for many purposes | |
winget install TwinkleTray -s msstore --accept-package-agreements # Monitor brightness on hardware level | |
winget install -e -s winget --id Armin2208.WindowsAutoNightMode -h # Auto Dark Mode | |
winget install -e --id Microsoft.PowerShell # PowerShell 7 | |
} | |
# Communication | |
if (!$installEverything) {$confirmationCommunication = Read-Host "Install communication? [y/n]"} | |
if ($confirmationCommunication -eq 'y' -or $confirmationCommunication -eq 'Y' -or $installEverything) { | |
winget install -e -s winget --id TeamSpeakSystems.TeamSpeakClient -h # Teamspeak 3 | |
winget install Discord -s msstore --accept-package-agreements # Discord | |
winget install WhatsApp -s msstore --accept-package-agreements # WhatsApp | |
winget install -e -s winget --id OpenWhisperSystems.Signal -h # Signal | |
} | |
# General programs | |
if (!$installEverything) {$confirmationGeneral = Read-Host "Install general programs? [y/n]"} | |
if ($confirmationGeneral -eq 'y' -or $confirmationGeneral -eq 'Y' -or $installEverything) { | |
$confirmApple = Read-Host "Do you have an Apple device? [y/n]" | |
if ($confirmApple -eq 'y' -or $confirmApple -eq 'Y' -or !$confirmApple) { | |
winget install iCloud -s msstore --accept-package-agreements | |
winget install iTunes -s msstore --accept-package-agreements | |
} | |
winget install Spotify -s msstore --accept-package-agreements | |
winget install Audible -s msstore --accept-package-agreements | |
winget install -e -s winget --id 7zip.7zip -h | |
# winget install -e -s winget --id TimKosse.FileZilla.Client -h # FTP Client | |
winget install -e -s winget --id GIMP.GIMP -h | |
winget install -e -s winget --id Audacity.Audacity -h | |
winget install -e -s winget --id Notepad++.Notepad++ -h | |
winget install -e -s winget --id Adobe.Acrobat.Reader.64-bit -h | |
# winget install -e -s winget --id Governikus.Ausweisapp2 -h # Tool for German ID | |
} | |
# Coding | |
if (!$installEverything) {$confirmationCoding = Read-Host "Install coding tools? [y/n]"} | |
if ($confirmationCoding -eq 'y' -or $confirmationCoding -eq 'Y' -or $installEverything) { | |
winget install -e -s winget --id GitHub.GitHubDesktop -h # Git GUI | |
winget install -e -s winget --id Git.Git -h | |
winget install -e -s winget --id Python.Python.3 -h | |
winget install -e -s winget --id Oracle.JavaRuntimeEnvironment -h # Java 8 | |
# winget install -e -s winget --id JetBrains.IntelliJIDEA.Community -h | |
# winget install -e -s winget --id JetBrains.PyCharm.Community -h | |
winget install -e -s winget --id Microsoft.VisualStudioCode -h | |
} | |
# LaTeX | |
if (!$installEverything) {$confirmationLaTeX = Read-Host "Install LaTeX? [y/n]"} | |
if ($confirmationLaTeX -eq 'y' -or $confirmationLaTeX -eq 'Y' -or $installEverything) { | |
winget install -e -s winget --id ChristianSchenk.MiKTeX -h | |
# winget install -e -s winget --id TeXstudio.TeXstudio -h | |
winget install -e -s winget --id JabRef.JabRef -h # Tool to manage sources | |
} | |
# Gaming | |
if (!$installEverything) {$confirmationGaming = Read-Host "Install gaming Launchers? [y/n]"} | |
if ($confirmationGaming -eq 'y' -or $confirmationGaming -eq 'Y' -or $installEverything) { | |
# Sadly the paths don't work on most launchers. But if a change occurs it will work. | |
winget install -e -s winget --id Valve.Steam -h -l "C:\Spiele\Steam" | |
winget install -e -s winget --id Ubisoft.Connect -h -l "C:\Spiele\Ubisoft" | |
winget install -e -s winget --id EpicGames.EpicGamesLauncher -h -l "C:\Spiele\Epic Games" | |
winget install -e -s winget --id RiotGames.LeagueOfLegends.EUW -l "C:\Spiele\Riot Games\League of Legends" | |
winget install -e -s winget --id ElectronicArts.EADesktop -h -l "C:\Spiele\Electronic Arts" | |
winget install -e -s winget --id GOG.Galaxy -h -l "C:\Spiele\GOG Galaxy" | |
winget install Xbox -s msstore --accept-package-agreements | |
} | |
# winget install -e -s winget --id Logitech.Options -h | |
# winget install -e -s winget --id Logitech.GHUB -h | |
# winget install -e -s winget --id Corsair.iCUE.4 -h | |
# winget install -e --id SteelSeries.GG -h | |
# winget install -e --id SteelSeries.SteelSeriesEngine -h | |
# winget install -e -s winget --id CreativeTechnology.SoundBlasterCommand -h | |
# winget install -e -s winget --id OBSProject.OBSStudio -h | |
# winget install -e --id Streamlabs.StreamlabsOBS -h | |
Set-ExecutionPolicy Restricted |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment