Exact package ID resolved to another project's uninstaller (DORON177.BatteryHub)
Mantenedores costumam responder em até 2 dias
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- cpp
- Domínio
- backend-api-design, cli, security
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- The standalone krisgfx9 BatteryHub 1.1.0 was installed. Its installer embeds
/repos/krisgfx9/Wireless-Device-Battery-Monitor/releases/latestas its update path. - 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. - UniGetUI requested an uninstall with
--id DORON177.BatteryHub --exact --source winget --version 1.1.0. WinGet reported one matching app and startedC:\Program Files\BatteryHub\unins000.exewith/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
- Linguagem predominante
- C++
- Estrelas
- 26.6k
- Forks
- 1.8k
- Merge médio
- 2d 18h
- PRs com merge (30d)
- 42
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de microsoft/winget-cli
-
Command-Install Needs-Triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 79/100
microsoft/winget-cli#6718 ·
Mantenedores costumam responder em até 2 dias
-
Issue-Docs Needs-Triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
microsoft/winget-cli#6692 ·
Mantenedores costumam responder em até 2 dias
-
Issue-Docs Possible-Duplicate
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
microsoft/winget-cli#6493 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
WinGetSourceCreator: PackWithMappingFile should verify makeappx.exe exists before invoking itAbertaIssue-Feature
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
microsoft/winget-cli#6427 ·
Mantenedores costumam responder em até 2 dias
-
Issue-Docs msstore
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
microsoft/winget-cli#6331 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
Todas as issues de microsoft/winget-cli
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
cp-algorithms/cp-algorithms#1774 ·
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 84/100
telefonicaid/fiware-orion#4836 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
SanderMertens/flecs#2463 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 79/100
Mantenedores costumam responder em até 2 dias
-
nixd exits at startup when its parent process belongs to another userTalvez já em andamento @conao3 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
nix-community/nixd#930 ·
Mantenedores costumam responder em até 2 dias