microsoft / microsoft/winget-cli
Provide metadata for installed packages
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Description of the new feature / enhancement
Sometimes WinGet doesn't correctly match an installed package with one in a configured source.
It can be tricky to see exactly what might be causing the failure. I'd like to be able to get the metadata written to the registry by installers subsequently used by WinGet for correlation.
This is also something that could be useful to capture in some kind of a flow where the Windows Sandbox can be used to install packages and then improve the manifest during a more interactive wingetcreate execution run. It might also help developers verify the behavior of their installer. We've seen examples where an install works correctly, but during an upgrade flow, the metadata doesn't get updated.
Maybe something like:
winget list <package> --include-correlation # Naming things is hard
I don't know about potential truncation issues, or how to reason about rendering the data when there are multiple results in the CLI just yet, but I wanted to capture this before I forgot.
Inspired by troubleshooting with @Smith8154 and @Trenly in:
https://github.com/microsoft/winget-cli/issues/3674#issuecomment-1736142608
Proposed technical implementation details
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the proposed winget list <package> --include-correlation entry point and investigate how installer metadata is written to the registry and later used for package correlation. Define how truncation and multiple results should be rendered, and consider the Windows Sandbox and wingetcreate scenarios; done means users can retrieve the relevant metadata reliably during troubleshooting.
Written by the indexing model from the issue text.
Assessment
- Domain
- cli, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100