In this blog post, I will show you how to install multiple apps simultaneously with the Microsoft Winget package manager.
Winget is an open-source package manager for Windows. It allows users to easily install and manage software packages from the command line interface. It is similar to popular package managers like apt-get and Homebrew, but specifically designed for the Windows operating system. With Winget, users can save time and effort by automating the installation and maintenance of their favourite software packages.
Install Multiple Apps With Winget
To install multiple apps with Winget at once, I am using a text file that contains all the apps that I need to install and a PowerShell script that loops over the list and installs each app.
To use the configuration, create the two files on your machine. To find the ID of each application use the winget search appname
command.
apps.txt
Microsoft.DotNet.SDK.8
Microsoft.DotNet.AspNetCore.8
Microsoft.DotNet.Runtime.8
winget_install.ps1
# Read application IDs from the file
$apps = Get-Content -Path "apps.txt"
# Install each application
foreach ($app in $apps) {
winget install $app --accept-package-agreements --accept-source-agreements
}
Nice! This will come in handy for sure!