Skip to content

A script to generate AppsAndFeaturesEntries for winget!

License

Notifications You must be signed in to change notification settings

jedieaston/Add-ARPEntries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • ARM64 support for Windows Containers doesn't exist. Since winget throws a non-zero code when it can't find a matching installer for your system, the script skips over ARM64 installer entries.
  • EdgeBlocker.cmd is used to disable Edge's autoupdater in the container image, since if it runs it can change the Add and Remove Programs table and mess with the diff.
  • AppX/MSIX aren't supported yet, but they will be.
  • winget.exe doesn't usually work in a container at all, so this container uses the nightlies from https://github.com/jedieaston/winget-build, which are just loose executables that can run in a container/over SSH/wherever. They are nightlies so there's a possibility of instability, but there haven't been many issues lately.
  • Please review the changes to the manifest before opening a PR. There's a possibility that the ISV put wacky information in the Add and Remove Programs table that we need to clean up manually in the manifest. It's also possible (*gasp*) that there's a bug in this script.

About

A script to generate AppsAndFeaturesEntries for winget!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published