jedieaston / Add-ARPEntries

A script to generate AppsAndFeaturesEntries for winget!
MIT License
3 stars 2 forks source link

Add-ARPEntries.ps1!

Want to be a good citizen of the Windows Package Manager Community Repository and add Add and Remove Programs entries for all of your apps, but don't know where to start? This script will automatically get them for all of the installers listed in a manifest (unless they run on ARM64 :D) using the magic of Windows Containers.

How to use

  1. Do you have Docker Desktop installed (winget install -s winget Docker.DockerDesktop) and configured for Windows Containers? If not, come back after you do that.
  2. Run docker build . -t wingettest in the root of the repository to build the container image (at some point I'll set up CI, but that day is not today).
  3. To add ARP entries to a manifest, run .\Add-ARPEntries.ps1 <path to manifest>, and wait for it to finish. It's that easy (in the best case!)

(Note: many applications don't behave correctly when they are running in a headless Windows environment, much less a headless Windows environment sharing resources with real Windows. Most installers should work enough to get ARP entries, but in some cases you'll want to do this in a Sandbox or a real VM.)

Notes