Hide MSIX components with no match from `winget list`

オープン
#6,663 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp
領域
backend, cli

調査の方向性

Start with PredefinedInstalledSourceFactory.cpp, ARPHelper.cpp, and ReportListResult, then trace how installed MSIX packages are enumerated and correlated. Check how package manifests expose AllowExternalContent and visible app list entries, and how ARP SystemComponent entries are filtered. The issue is done when uncorrelated MSIX components are hidden from winget list; consider the enumeration performance concern raised in the issue.

索引モデルが issue の本文から書いたものです。

説明

Issue-Feature
Relevant area(s)

WinGet CLI

Description of the new feature / enhancement

winget list currently shows MSIX packages that aren't really apps - identity packages registered by Win32 installers, shell extensions, and headless runtime/data packages. They can't be correlated to a source, so they show as MSIX\<full name> rows instead. Usually a Win32 entry already represents the product and it's correlated instead.

On my machine, 69 of the MSIX rows have no source. Three of them are apps. Some examples:

Adobe Acrobat                      MSIX\AdobeAcrobatDCCoreApp_26.1.0.0_x64__33qsgwvbc… 26.1.0.0
Adobe Acrobat (64-bit)             Adobe.Acrobat.Pro                                   26.002.22031    winget
EpmShellExtension                  MSIX\Microsoft.EpmShellExtension_1.0.0.0_neutral__… 1.0.0.0
Microsoft Edge                     Microsoft.Edge                                      157.0.4341.42   winget
Microsoft Edge                     MSIX\Microsoft.MicrosoftEdge.Stable_152.0.4191.53_… 152.0.4191.53
PowerToys (Preview) x64            Microsoft.PowerToys                                 0.102.3001.0    winget
PowerToys PowerRename Context Menu MSIX\Microsoft.PowerToys.PowerRenameContextMenu_0.… 0.102.3001.0
PSTokenizerShared                  MSIX\WindowsWorkload.PSTokenizerShared.Data.3.5_1.… 1.2508.888.0
Windows Package Manager Source (winget) V2  MSIX\Microsoft.Winget.Source_2026.1108.637.6_neutr… 2026.1108.637.6
Unmapped MSIX rows Count Identifier
Packages with external location (Adobe CoreApps, Edge, Office helpers, OneDriveSync, PowerToys context menus, VS Code, EpmShellExtension, WinMerge, Local AI Manager) 15 AllowExternalContent
Headless packages (WindowsWorkload.* AI components, winget's own source packages, OpenAI.CodexPrimaryRuntime.*) 51 No Application element, or every app has AppListEntry="none"
Apps with a Start entry (Command Palette, Windows Security, an Edge PWA) 3 None I can find

winget list already hides ARP entries with SystemComponent set.

https://github.com/microsoft/winget-cli/blob/afc9a471496c4cd80ac363df269362f84ea5a457/src/AppInstallerRepositoryCore/Microsoft/ARPHelper.cpp#L418-L423

But it only skips PackageSignatureKind::System MSIX packages.

https://github.com/microsoft/winget-cli/blob/afc9a471496c4cd80ac363df269362f84ea5a457/src/AppInstallerRepositoryCore/Microsoft/PredefinedInstalledSourceFactory.cpp#L139-L146

Proposed technical implementation details

Hide these packages from winget list when they have no available match.

  1. In PredefinedInstalledSourceFactory, mark MSIX packages as components when the manifest sets AllowExternalContent, or when no application has a visible app list entry.
  2. In ReportListResult, skip uncorrelated installed packages that are marked as components.

Questions:

  • Do we need --include-components to show the skipped entries? We don't for ARP, so I lean towards no
  • This approach reads each package's manifest during enumeration, would have to make sure it's not too slow
主要言語
C++
スター
26.6k
フォーク
1.8k
平均マージ
3日 10時間
マージ済み PR(30日)
41

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/winget-cli のほかの issue

microsoft/winget-cli の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。