Skip to content

Instantly share code, notes, and snippets.

@tagd
tagd / winget-package-install.ps1
Last active April 12, 2021 20:11 — forked from karaeren/winget-package-install.ps1
Install multiple packages with winget (and install winget if does not exist).
# Create a file named "winget.txt" in the same directory as this script.
# Write exact names for packages on each line.
# Ex: filename: winget.txt
# Microsoft.Edge
# Google.Chrome
Write-Host "Checking winget..."
Try{
# Check if winget is already installed