Exact package ID resolved to another project's uninstaller (DORON177.BatteryHub)

未关闭
#6,716 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
cpp

调研方向

Start with the linked matching code in src/AppInstallerRepositoryCore/CompositeSource.cpp at lines 74–99 and trace how the installed application is associated with the catalog entry during winget uninstall. The report says the retained logs do not identify which field decided the match, so first determine whether the association can distinguish heuristic matches from verified installations. Done means confirming the resolution path and addressing the risk that an exact-ID uninstall selects another project's uninstaller.

由索引模型根据 Issue 内容生成。

描述

Area-COM-API Command-Uninstall Issue-Bug Needs-Triage
Relevant area(s)

WinGet CLI, COM API

Relevant command(s)

winget uninstall

Brief description of your issue

On 26 November 2026, WinGet resolved DORON177.BatteryHub to BatteryHub 1.1.0 from krisgfx9/Wireless-Device-Battery-Monitor. These are different projects. An exact-ID uninstall launched the original project's uninstaller and removed it.

Installed application Catalog candidate
Name BatteryHub Battery Hub
Publisher in installer or Apps & Features metadata BatteryHub contributors Battery Hub contributors
Installer Inno Setup, version 1.1.0 Nullsoft/NSIS, version 2.0.7
Identifier Inno AppId {7E0B5C2A-3F4D-4C8E-9B61-2D5A8F1C4E93} ProductCode 3dbe5c54-f0bc-5ecd-8ed5-c18e28514bdd
Steps to reproduce

Sequence observed on the affected PC. I have not repeated the uninstall on a fresh system.

  1. The standalone krisgfx9 BatteryHub 1.1.0 was installed. Its installer embeds /repos/krisgfx9/Wireless-Device-Battery-Monitor/releases/latest as its update path.
  2. UniGetUI queried the WinGet COM API. WinGet retrieved the catalog entry for DORON177.BatteryHub, and UniGetUI offered 2.0.7 as an update to 1.1.0.
  3. UniGetUI requested an uninstall with --id DORON177.BatteryHub --exact --source winget --version 1.1.0. WinGet reported one matching app and started C:\Program Files\BatteryHub\unins000.exe with /SILENT. The uninstall succeeded.
Expected behavior

An exact catalog ID should not select another project's uninstaller. If the association cannot be verified, leave the installed application in place and require the caller to identify the local installation explicitly.

Actual behavior

WinGet removed the krisgfx9 application. UniGetUI then issued a separate install for DORON177.BatteryHub 2.0.7, which succeeded.

In the catalog snapshot used during the incident, only DORON177.BatteryHub had the normalized pair batteryhub / batteryhubcontributors. Its only product code was the NSIS code above. The original Inno GUID had no product-code entry in the snapshot. A name/publisher collision is the likely explanation. The retained logs do not identify which field decided the match.

Could you confirm how this association was resolved and whether the uninstall path can distinguish a heuristic match from a verified installation? Matching code in 1.29.380 · 2.0.7 installer manifest

Related: #3072 concerns an incorrect ID in the installed list. In this case the association reached the uninstall step.

Environment
Windows 11 Pro 26H2 x64, build 26300.10075
WinGet 1.29.380 / Microsoft.DesktopAppInstaller 1.29.380.0
Source: winget, catalog snapshot 2026.1126.1714.44
Discovery: UniGetUI 2026.3.4 via the WinGet COM API
Uninstall: winget.exe
主要语言
C++
星标
26.6k
派生
1.8k
平均合并
2 天 18 小时
30 天内合并 PR
42

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/winget-cli 的其他 Issue

查看 microsoft/winget-cli 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。