Automate App Packaging Using Winget
Contents
I want to show my simple script that automates the installation of multiple Windows apps using winget.
It’s better and faster way than manual installation, especially when you often installing a new Windows.
How To Start
- Download script from github https://github.com/vukilis/Windows10AppScript
or
run following command in terminal (terminal must be run as Admin):
iex ((New-Object System.Net.WebClient).DownloadString('https://git.io/JDBpN'))
Prepare App List
-
You have to create json file with your packages.
-
If you downloaded script from github you will have in directory example file “package.json”.
-
In this file provide name of your apps.
- App name can be found with next command (example):
winget search sumatra
Install
- When you run the script enter your json file. Location can be local (absolute path) or url.
- Proceed the installation.