microsoft / microsoft/winget-cli
`winget update -r` installed a software update that wasn't in the header
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Relevant area(s)
WinGet CLI
Relevant command(s)
winget upgrade
Brief description of your issue
Winget only reported four updates available, but actually installed five. This is not consistent with what the user expectation of the software was.
Such a problem could have users believe they're ready to upgrade and not take precautionary measures such as saving work in progress or closing programs/dependent programs (as they are not aware of what Winget is about to do).
In my case, this happened with REALiX.HWiNFO. It may not be unique to that (community) package.
Steps to reproduce
winget update showed me four packages ready to update.
winget update -r showed the same four packages, but when it got going, it had five in the queue, starting with REALiX.HWiNFO.
Expected behavior
Winget should fully report all available software updates in the header.
Actual behavior
Winget didn't fully report all packages to be updated.
PS C:\Users\REDACTED> winget update
Name Id Version Available Source
----------------------------------------------------------------------------
Notepad++ (64-bit x64) Notepad++.Notepad++ 8.8.3 8.8.5 winget
PostgreSQL 15 PostgreSQL.PostgreSQL.15 15.13-3 15.14-1 winget
Garmin Express Garmin.Express 7.25.0.0 7.26.0.0 winget
yt-dlp yt-dlp.yt-dlp 2025.07.21 2025.08.11 winget
4 upgrades available.
PS C:\Users\REDACTED> winget update -r
Name Id Version Available Source
----------------------------------------------------------------------------
Notepad++ (64-bit x64) Notepad++.Notepad++ 8.8.3 8.8.5 winget
PostgreSQL 15 PostgreSQL.PostgreSQL.15 15.13-3 15.14-1 winget
Garmin Express Garmin.Express 7.25.0.0 7.26.0.0 winget
yt-dlp yt-dlp.yt-dlp 2025.07.21 2025.08.11 winget
4 upgrades available.
Installing dependencies:
This package requires the following dependencies:
- Packages
yt-dlp.FFmpeg
(1/5) Found HWiNFO® [REALiX.HWiNFO] Version 8.30
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://sourceforge.net/projects/hwinfo/files/Windows_Installer/hwi64_830.exe/download
██████████████████████████████ 17.8 MB / 17.8 MB
Successfully verified installer hash
Starting package install...
Successfully installed
(2/5) Found Notepad++ [Notepad++.Notepad++] Version 8.8.5
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.8.5/npp.8.8.5.Installer.x64.exe
██████████████████████████████ 6.56 MB / 6.56 MB
Successfully verified installer hash
Starting package install...
Successfully installed
Environment
> winget --info
Windows Package Manager v1.11.430
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.26100.4946
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.26.430.0
Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User) %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root C:\Program Files\WinGet\Packages
Portable Package Root (x86) C:\Program Files (x86)\WinGet\Packages
Installer Downloads %USERPROFILE%\Downloads
Configuration Modules %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules
Links
---------------------------------------------------------------------------
Privacy Statement https://aka.ms/winget-privacy
License Agreement https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale
Admin Setting State
--------------------------------------------------
LocalManifestFiles Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride Disabled
LocalArchiveMalwareScanOverride Disabled
ProxyCommandLineOptions Disabled
DefaultProxy Disabled
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 by reproducing the reported winget update and winget update -r commands in the WinGet CLI, using the supplied output and environment details. Trace how the four reported upgrades and the HWiNFO dependency become the installation queue. Done means the header fully accounts for every package that will be installed, including dependencies.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100