microsoft / winget-cli

WinGet is the Windows Package Manager. This project includes a CLI (Command Line Interface), PowerShell modules, and a COM (Component Object Model) API (Application Programming Interface).
https://learn.microsoft.com/windows/package-manager/
MIT License
23.29k stars 1.45k forks source link

WinGet keeps reinstalling same updates that were marked as successful #2313

Closed birbilis closed 3 months ago

birbilis commented 2 years ago

Brief description of your issue

Seems WinGet keeps on installing (some of) the updates again and again

Steps to reproduce

probably machine-specific, see output

Expected behavior

Shouldn't keep on installing the same succesful installs

Actual behavior

Microsoft Windows [Version 10.0.22000.778] (c) Microsoft Corporation. Με επιφύλαξη κάθε νόμιμου δικαιώματος.

C:\WINDOWS\system32>winget upgrade --all -h Found 7-Zip [7zip.7zip] Version 22.00 Found Git [Git.Git] Version 2.37.0 Found VoiceBot [BinaryFortress.VoiceBot] Version 3.8.2 Found Microsoft Teams [Microsoft.Teams] Version 1.5.00.14473 Found Webex [Cisco.WebexTeams] Version 42.6.0.22645 Found LibreOffice [TheDocumentFoundation.LibreOffice] Version 7.3.4.2 Found Microsoft Visual C++ 2015-2022 Redistributable (x64) [Microsoft.VC++2015-2022Redist-x64] Version 14.32.31332.0 Found GOG GALAXY [GOG.Galaxy] Version 2.0.49.1 Found OpenVPN [OpenVPNTechnologies.OpenVPN] Version 2.5.036 Found Viber [Viber.Viber] Version 17.9.0.0 (1/10) Found 7-Zip [7zip.7zip] Version 22.00 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://www.7-zip.org/a/7z2200-x64.exe ██████████████████████████████ 1.49 MB / 1.49 MB Successfully verified installer hash Starting package install... Successfully installed

(2/10) Found Git [Git.Git] Version 2.37.0 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/git-for-windows/git/releases/download/v2.37.0.windows.1/Git-2.37.0-64-bit.exe ██████████████████████████████ 46.9 MB / 46.9 MB Successfully verified installer hash Starting package install... Successfully installed

(3/10) Found VoiceBot [BinaryFortress.VoiceBot] Version 3.8.2 This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Successfully verified installer hash Starting package install... Successfully installed

(4/10) Found Microsoft Teams [Microsoft.Teams] Version 1.5.00.14473 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://statics.teams.cdn.office.net/production-windows-x64/1.5.00.14473/Teams_windows_x64.exe ██████████████████████████████ 120 MB / 120 MB Successfully verified installer hash Starting package install... Successfully installed

(5/10) Found Webex [Cisco.WebexTeams] Version 42.6.0.22645 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://binaries.webex.com/WebexTeamsDesktop-Windows-Gold/Webex.msi ██████████████████████████████ 278 MB / 278 MB Successfully verified installer hash Starting package install... Successfully installed

(6/10) Found LibreOffice [TheDocumentFoundation.LibreOffice] Version 7.3.4.2 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://downloadarchive.documentfoundation.org/libreoffice/old/7.3.4.2/win/x86_64/LibreOffice_7.3.4.2_Win_x64.msi ██████████████████████████████ 331 MB / 331 MB Successfully verified installer hash Starting package install... Successfully installed

(7/10) Found Microsoft Visual C++ 2015-2022 Redistributable (x64) [Microsoft.VC++2015-2022Redist-x64] Version 14.32.31332.0 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://download.visualstudio.microsoft.com/download/pr/ed95ef9e-da02-4735-9064-bd1f7f69b6ed/CE6593A1520591E7DEA2B93FD03116E3FC3B3821A0525322B0A430FAA6B3C0B4/VC_redist.x64.exe ██████████████████████████████ 24.0 MB / 24.0 MB Successfully verified installer hash Starting package install... Successfully installed

(8/10) Found GOG GALAXY [GOG.Galaxy] Version 2.0.49.1 This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Successfully verified installer hash Starting package install... Installer failed with exit code: 1 Installer log is available at: C:\Users\birbi\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-GOG.Galaxy.2.0.49.1-2022-07-07-05-01-51.906.log

(9/10) Found OpenVPN [OpenVPNTechnologies.OpenVPN] Version 2.5.036 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://swupdate.openvpn.org/community/releases/OpenVPN-2.5.7-I602-amd64.msi ██████████████████████████████ 4.18 MB / 4.18 MB Successfully verified installer hash Starting package install... Successfully installed

(10/10) Found Viber [Viber.Viber] Version 17.9.0.0 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://download.cdn.viber.com/desktop/windows/ViberSetup.exe ██████████████████████████████ 122 MB / 122 MB Successfully verified installer hash Starting package install... Successfully installed

C:\WINDOWS\system32>winget upgrade --all -h Found VoiceBot [BinaryFortress.VoiceBot] Version 3.8.2 Found Webex [Cisco.WebexTeams] Version 42.6.0.22645 Found GOG GALAXY [GOG.Galaxy] Version 2.0.49.1 Found Microsoft Visual C++ 2015-2022 Redistributable (x64) [Microsoft.VC++2015-2022Redist-x64] Version 14.32.31332.0 (1/4) Found VoiceBot [BinaryFortress.VoiceBot] Version 3.8.2 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://binaryfortressdownloads.com/Download/BFSFiles/123/VoiceBotSetup-3.8.2.exe ██████████████████████████████ 12.2 MB / 12.2 MB Successfully verified installer hash Starting package install... Successfully installed

(2/4) Found Webex [Cisco.WebexTeams] Version 42.6.0.22645 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://binaries.webex.com/WebexTeamsDesktop-Windows-Gold/Webex.msi ██████████████████████████████ 278 MB / 278 MB Successfully verified installer hash Starting package install... Successfully installed

(3/4) Found GOG GALAXY [GOG.Galaxy] Version 2.0.49.1 This application is licensed to you by its owner. Microsoft is not responsible for, nor does it grant any licenses to, third-party packages. Successfully verified installer hash Starting package install... Installer failed with exit code: 1 Installer log is available at: C:\Users\birbi\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-GOG.Galaxy.2.0.49.1-2022-07-07-05-14-20.753.log

(4/4) Found Microsoft Visual C++ 2015-2022 Redistributable (x64) [Microsoft.VC++2015-2022Redist-x64] Version 14.32.31332.0 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://download.visualstudio.microsoft.com/download/pr/ed95ef9e-da02-4735-9064-bd1f7f69b6ed/CE6593A1520591E7DEA2B93FD03116E3FC3B3821A0525322B0A430FAA6B3C0B4/VC_redist.x64.exe ██████████████████████████████ 24.0 MB / 24.0 MB Successfully verified installer hash Starting package install... Successfully installed

C:\WINDOWS\system32>winget upgrade --all -h Found VoiceBot [BinaryFortress.VoiceBot] Version 3.8.2 Found Webex [Cisco.WebexTeams] Version 42.6.0.22645 Found GOG GALAXY [GOG.Galaxy] Version 2.0.49.1 Found Microsoft Visual C++ 2015-2022 Redistributable (x64) [Microsoft.VC++2015-2022Redist-x64] Version 14.32.31332.0 (1/4) Found VoiceBot [BinaryFortress.VoiceBot] Version 3.8.2 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://binaryfortressdownloads.com/Download/BFSFiles/123/VoiceBotSetup-3.8.2.exe ██████████████████████████████ 6.00 MB / 12.2 MB Package download canceled.

Cancelled

Environment

Windows Package Manager v1.2.11601
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22000.778
Package: Microsoft.DesktopAppInstaller v1.17.11601.0
Trenly commented 2 years ago
frankhale commented 2 years ago

I am also seeing where winget says I have updates but it's definitely already installed them. If I run winget upgrade --all then it will just reinstall the same things over and over again and still report that they have not been upgraded.

Here is my list of apps that report upgrades but are already installed:

image

Trenly commented 2 years ago

image

frankhale commented 2 years ago

Thank you @Trenly for that detailed info!!!

Looks like Windows PC Health Check was only installed using winget

image

denelon commented 2 years ago

The list doesn't mean that HealthCheck came from the "winget" source, it just means we were able to match the installed package against one that is available in the source.

dgee2 commented 2 years ago

I'm also seeing this issue with several packages. One solution that I have thought of is for there to be an option to hide packages from winget. i.e. if there is a package that I don't want winget to manage and I will manage manually, add it to some exclusion list.

birbilis commented 2 years ago

Apart from allowing to set an exclusion list, could detect such cases (or at least the package installation failures) and suggest to the user how to add to the exclusion list. Also could maybe send some info to the author of that package, probably user could opt in to send more info about the environment the issue occurs at. For cases where it thinks it installed it, it's probably harder to detect (unless it added an installation verification option where it would check if the just installed new package version is detected after install)

frankhale commented 2 years ago

This is getting super frustrating. Winget keeps saying there are upgrades even after everything has been upgraded.

image

AHBAdmin commented 2 years ago

Notice also that this seems to be happening predominantly with Microsoft packages:

image

After upgrade:

image

denelon commented 2 years ago

This issue is primarily caused by packages with versions that install "side-by-side".

As we iterate over the list, we look for upgrades.

If you have version 1 installed and run upgrade, version 2 gets "added".

Then when we iterate over again, we see version 1 and it needs an upgrade even though version 2 is installed.

We're working on a fix to detect if the latest version of a package is already installed to reduce the friction here.

denelon commented 1 year ago

We've improved the logic in WinGet 1.4. I know there are still issues with matching for some packages like Teams and VC Redists.

@birbilis are you still seeing the same packages failing, or have some of them improved?

JohnLukeBentley commented 1 year ago

The following packages will reinstall even though previously marked as successful:

PS ...Sda\Code> winget upgrade --all
Name                             Id                     Version Available Source
--------------------------------------------------------------------------------
IrfanView 4.60 (32-bit)          IrfanSkiljan.IrfanView 4.60    4.62      winget
Microsoft .NET SDK 6.0.310 (x64) Microsoft.DotNet.SDK.6 6.0.310 6.0.407   winget

In IrfanView's case it's a 32 bit version installed but during the attempt to update a 64 bit installer is ran.

JohnLukeBentley commented 1 year ago

Also for "unknown" packages:

PS ...Sda\Code> winget upgrade --include-unknown --all
Name                             Id                     Version Available Source
--------------------------------------------------------------------------------
IrfanView 4.60 (32-bit)          IrfanSkiljan.IrfanView 4.60    4.62      winget
WinDirStat 1.1.2                 WinDirStat.WinDirStat  Unknown 1.1.2     winget
Microsoft .NET SDK 6.0.310 (x64) Microsoft.DotNet.SDK.6 6.0.310 6.0.407   winget
4 upgrades available.

The following packages have an upgrade available, but require explicit targeting for upgrade:
Name   Id                    Version Available Source
-----------------------------------------------------
Zotero DigitalScholar.Zotero 6.0.18  6.0.23    winget
denelon commented 1 year ago

How is Zotero being displayed in Windows Apps & Features? WinGet is looking at the registry key and seeing version "6.0.8" based on the output above. It's possible the installer isn't updating the registry key during the upgrade process.

birbilis commented 1 year ago

We've improved the logic in WinGet 1.4

btw, does WinGet itself autoupdate? I see I have 1.4.10173 on that same Win10pro laptop, but not sure if it updated with OS or when I run it last time or something. Tried "winget upgrade winget" with no luck (can't find package). How can one try to get the latest winget (applicable to the current OS/CPU at least) before they do the other upgrades?

birbilis commented 1 year ago

This one forces one to respond to confirmation prompt and then shows the VS installer's progress pane: (1/28) Found Visual Studio Community 2022 [Microsoft.VisualStudio.2022.Community] Version 17.5.3

denelon commented 1 year ago

WinGet does not autoupdate, but the Microsoft Store will autoupdate the App Installer (containing WinGet).

birbilis commented 1 year ago

This one shows a UAC prompt at some point (should I be running winget from elevated command prompt instead?) (2/28) Found Android Studio [Google.AndroidStudio] Version 2022.1.1.19

birbilis commented 1 year ago

This one seems to progress with failure immediately before the user does something on the dialog it shows (even though I used "-h" option for upgrade). I guess if one presses Remove they'll lose the s/w and will need to install it by hand since as the screenshot shows winget continues in the mean time with other packages Bitvise SSH Client 9.25 (remove only) Bitvise.SSH.Client 9.25 9.27 winget image btw, not sure what the '"remove only" means in its title

JohnLukeBentley commented 1 year ago

@denelon

How is Zotero being displayed in Windows Apps & Features?

It displays as 6.0.18. Same for Control Panel\Programs\Programs and Features.

It's possible the installer isn't updating the registry key during the upgrade process.

Yes that seems plausible.

I haven't rebooted the computer. I'll try that ...

@birbilis

btw, not sure what the '"remove only" means in its title

See #3130

Sculas commented 1 year ago

I'm encountering this as well with these applications:

I don't know of any fix and it's polluting my weekly winget upgrade run with updates it already has.

EDIT: For now, I've pinned the packages using #476. This should prevent it from useless reinstalling every time I try to update everything.

sba923 commented 1 year ago

I'm experiencing the same issue with Android Studio:

image

Here are the logs: WinGet-2023-10-23-AndroidStudio.zip

jeffbeechg commented 1 year ago

I'm having the repeat-install problem with DotNet 7. Over the past week or so, winget has re-installed it every time I have run winget upgrade --all --include-unknown I tried uninstalling it (via winget), rebooting and re-installing but all to no avail. Winget

frankhale commented 1 year ago

I have a list of 20 packages that never get removed from the list even though they were upgraded. Since I've seen this issue for a year and a half, I just ignore the offenders and install by hand the packages that play nice.

edwardspresume commented 5 months ago

Any solution for this yet?

denelon commented 4 months ago

We've released better support for packages that install "side-by-side" in WinGet 1.8. Is this still happening?

jeffbeechg commented 4 months ago

Hi Demetrius,

Good question. I can't guarantee that it's fixed but I haven't seen it happen recently.

Thanks for checking.

Cheers,

Jeff

On Mon, Jul 8, 2024 at 8:13 PM Demitrius Nelon @.***> wrote:

We've released better support for packages that install "side-by-side" in WinGet 1.8. Is this still happening?

— Reply to this email directly, view it on GitHub https://github.com/microsoft/winget-cli/issues/2313#issuecomment-2215967116, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXHCUD5EGNWEE762VTRSEPLZLM2LNAVCNFSM523X6HMKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMRRGU4TMNZRGE3A . You are receiving this because you commented.Message ID: @.***>

jeffbeechg commented 4 months ago

Well, that's odd. I replied on the 19th of July 2024. Oh well. I will trust that the problem is fixed as I have not seen it reoccur since the update to Winget 1.8. As an aside. Winget wanted to update Edge but didn't. So I issued a specific command to update Edge. Then it told me the install technology was different and I had to uninstall Edge. I tried that and got error 93.

birbilis commented 4 months ago

We've released better support for packages that install "side-by-side" in WinGet 1.8. Is this still happening?

tried on that same machine earlier today (without the -h option) and it did install 40 packages ok, apart from a strange glitch message at the end that's strange:

the uninformative glitch I refer to is:

Successfully verified installer hash
Starting package install...
  ████████████████████████████▌   95%
Installer failed with exit code: 0x80070002 :           .

There's a small chance it's related to "Dev Home" (Preview) and to the fact that once it popped up (after WinGet updated it), I selected from its UI to bring some extensions which it seems to bring via the Microsoft Store. It had brought (pending at that moment) the GitHub extension for Dev Home.

...But not sure since when I run the command again (and when I run it again now) I mainly notice a message "46 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.". That message was also showing at the end of the 30 packages successful upgrade. If it had shown just below the initial list of packages with upgrades (before the upgrades loop) it would have been more informative I think since I wouldn't be wondering now if the updates caused the 46 packages with version numbers that cannot be determined or affected that count. Trying --include-unknown shows nothing (so I wonder what that count of 46 means):


C:\WINDOWS\system32>winget upgrade --all -h --include-unknown
No installed package found matching input criteria.

all the interaction was this:

Microsoft Windows [Version 10.0.19045.4651]
(c) Microsoft Corporation. Με επιφύλαξη κάθε νόμιμου δικαιώματος.

C:\WINDOWS\system32>winget upgrade --all
Name                                                               Id                                    Version       Available     Source
-------------------------------------------------------------------------------------------------------------------------------------------
7-Zip 23.01 (x64)                                                  7zip.7zip                             23.01         24.07         winget
Window Inspector 3.0.1 (64-bit)                                    BinaryFortress.WindowInspector        3.0.1.0       3.4.0.0       winget
Android Studio                                                     Google.AndroidStudio                  2022.1.1.19   2024.1.1.12   winget
CPUID CPU-Z 2.09                                                   CPUID.CPU-Z                           2.09          2.10          winget
CPUID HWMonitor 1.52                                               CPUID.HWMonitor                       1.52          1.53          winget
Git                                                                Git.Git                               2.43.0        2.45.2        winget
Notepad++ (64-bit x64)                                             Notepad++.Notepad++                   8.6.8         8.6.9         winget
ScummVM 2.7.0                                                      ScummVM.ScummVM                       2.7.0         2.8.1         winget
Speccy                                                             Piriform.Speccy                       1.32          1.33          winget
WinMerge 2.16.36.0 x64                                             WinMerge.WinMerge                     2.16.36.0     2.16.40       winget
Eclipse Temurin JDK with Hotspot 8u362-b09 (x64)                   EclipseAdoptium.Temurin.8.JDK         8.0.362.9     8.0.412.8     winget
Eclipse Temurin JDK with Hotspot 11.0.15+10 (x64)                  EclipseAdoptium.Temurin.11.JDK        11.0.15.10    11.0.23.9     winget
Tiled                                                              Tiled.Tiled                           1.10.1        1.11.0        winget
Remote Desktop                                                     Microsoft.RemoteDesktopClient         1.2.4066.0    1.2.5552.0    winget
RealVNC Viewer 7.5.1                                               RealVNC.VNCViewer                     7.5.1.50075   7.12.0.14     winget
Eclipse Temurin JDK with Hotspot 17.0.9+9 (x64)                    EclipseAdoptium.Temurin.17.JDK        17.0.9.9      17.0.11.9     winget
GitHub CLI                                                         GitHub.cli                            2.27.0        2.52.0        winget
grepWin x64                                                        StefansTools.grepWin                  1.9.831       2.1.1355      winget
Microsoft Build of OpenJDK with Hotspot 11.0.18+10 (x64)           Microsoft.OpenJDK.11                  11.0.18.10    11.0.23.9     winget
Visual Studio Community 2022                                       Microsoft.VisualStudio.2022.Community 17.9.4        17.10.4       winget
ASIO4ALL                                                           MichaelTippach.ASIO4ALL               2.15          2.16          winget
Adobe Creative Cloud                                               Adobe.CreativeCloud                   5.7.1.1       6.3.0.207     winget
AnyDesk                                                            AnyDeskSoftwareGmbH.AnyDesk           < 8.0.11      8.0.11        winget
Ubisoft Connect                                                    Ubisoft.Connect                       136.2.10786   154.1.0.11095 winget
WinSCP 6.1.2                                                       WinSCP.WinSCP                         6.1.2         6.3.4         winget
Microsoft Visual C++ 2015-2022 Redistributable (x64) - 14.38.33130 Microsoft.VCRedist.2015+.x64          14.38.33130.0 14.40.33810.0 winget
Microsoft Visual C++ 2015-2022 Redistributable (x86) - 14.38.33130 Microsoft.VCRedist.2015+.x86          14.38.33130.0 14.40.33810.0 winget
Microsoft Visual Studio Code (User)                                Microsoft.VisualStudioCode            1.87.2        1.91.1        winget
Viber                                                              Rakuten.Viber                         22.2.0.0      23.1.0.0      winget
Dev Home                                                           Microsoft.DevHome                     0.1500.533.0  0.1501.533.0  winget
30 upgrades available.

Installing dependencies:
This package requires the following dependencies:
  - Packages
      Microsoft.WindowsAppRuntime.1.5
(1/30) Found 7-Zip [7zip.7zip] Version 24.07
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://7-zip.org/a/7z2407-x64.exe
  ██████████████████████████████  1.54 MB / 1.54 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(2/30) Found Window Inspector [BinaryFortress.WindowInspector] Version 3.4.0.0
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://www.binaryfortress.com/Data/Download/?DownloadID=019002ec-a31e-7341-b591-6f2d6dd1d567&Log=202
  ██████████████████████████████  18.8 MB / 18.8 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(3/30) Found Android Studio [Google.AndroidStudio] Version 2024.1.1.12
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://redirector.gvt1.com/edgedl/android/studio/install/2024.1.1.12/android-studio-2024.1.1.12-windows.exe
  ██████████████████████████████  1.12 GB / 1.12 GB
Successfully verified installer hash
Starting package install...
Successfully installed

(4/30) Found CPUID CPU-Z [CPUID.CPU-Z] Version 2.10
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://download.cpuid.com/cpu-z/cpu-z_2.10-en.exe
  ██████████████████████████████  3.40 MB / 3.40 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(5/30) Found CPUID HWMonitor [CPUID.HWMonitor] Version 1.53
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://download.cpuid.com/hwmonitor/hwmonitor_1.53.exe
  ██████████████████████████████  1.46 MB / 1.46 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(6/30) Found Git [Git.Git] Version 2.45.2
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/git-for-windows/git/releases/download/v2.45.2.windows.1/Git-2.45.2-64-bit.exe
  ██████████████████████████████  64.9 MB / 64.9 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(7/30) Found Notepad++ [Notepad++.Notepad++] Version 8.6.9
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.6.9/npp.8.6.9.Installer.x64.exe
  ██████████████████████████████  6.23 MB / 6.23 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(8/30) Found ScummVM [ScummVM.ScummVM] Version 2.8.1
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://downloads.scummvm.org/frs/scummvm/2.8.1/scummvm-2.8.1-win32.exe
  ██████████████████████████████   120 MB /  120 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(9/30) Found Speccy [Piriform.Speccy] Version 1.33
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://download.ccleaner.com/spsetup133.exe
  ██████████████████████████████  17.9 MB / 17.9 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(10/30) Found WinMerge [WinMerge.WinMerge] Version 2.16.40
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/WinMerge/winmerge/releases/download/v2.16.40/WinMerge-2.16.40-x64-Setup.exe
  ██████████████████████████████  9.45 MB / 9.45 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(11/30) Found Eclipse Temurin JDK with Hotspot 8 [EclipseAdoptium.Temurin.8.JDK] Version 8.0.412.8
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/adoptium/temurin8-binaries/releases/download/jdk8u412-b08/OpenJDK8U-jdk_x64_windows_hotspot_8u412b08.msi
  ██████████████████████████████  85.8 MB / 85.8 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(12/30) Found Eclipse Temurin JDK with Hotspot 11 [EclipseAdoptium.Temurin.11.JDK] Version 11.0.23.9
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/adoptium/temurin11-binaries/releases/download/jdk-11.0.23+9/OpenJDK11U-jdk_x64_windows_hotspot_11.0.23_9.msi
  ██████████████████████████████   167 MB /  167 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(13/30) Found Tiled [Tiled.Tiled] Version 1.11.0
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/mapeditor/tiled/releases/download/v1.11.0/Tiled-1.11.0_Windows-10%2B_x86_64.msi
  ██████████████████████████████  19.7 MB / 19.7 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(14/30) Found Remote Desktop [Microsoft.RemoteDesktopClient] Version 1.2.5552.0
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://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW1mLqA
  29.7 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(15/30) Found RealVNC Viewer [RealVNC.VNCViewer] Version 7.12.0.14
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://downloads.realvnc.com/download/file/viewer.files/VNC-Viewer-7.12.0-Windows-msi.zip
  ██████████████████████████████  8.09 MB / 8.09 MB
Successfully verified installer hash
Extracting archive...
Successfully extracted archive
Starting package install...
Successfully installed

(16/30) Found Eclipse Temurin JDK with Hotspot 17 [EclipseAdoptium.Temurin.17.JDK] Version 17.0.11.9
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/adoptium/temurin17-binaries/releases/download/jdk-17.0.11+9/OpenJDK17U-jdk_x64_windows_hotspot_17.0.11_9.msi
  ██████████████████████████████   160 MB /  160 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(17/30) Found GitHub CLI [GitHub.cli] Version 2.52.0
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/cli/cli/releases/download/v2.52.0/gh_2.52.0_windows_amd64.msi
  ██████████████████████████████  12.7 MB / 12.7 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(18/30) Found grepWin [StefansTools.grepWin] Version 2.1.1355
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/stefankueng/grepWin/releases/download/2.1.3/grepWin-2.1.3-x64.msi
  ██████████████████████████████  1.57 MB / 1.57 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(19/30) Found Microsoft Build of OpenJDK with Hotspot 11 [Microsoft.OpenJDK.11] Version 11.0.23.9
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://aka.ms/download-jdk/microsoft-jdk-11.0.23-windows-x64.msi#winget
  ██████████████████████████████   164 MB /  164 MB
Successfully verified installer hash
Starting package uninstall...
Successfully uninstalled
Starting package install...
Successfully installed

(20/30) Found Visual Studio Community 2022 [Microsoft.VisualStudio.2022.Community] Version 17.10.4
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://download.visualstudio.microsoft.com/download/pr/7593f7f0-1b5b-43e1-b0a4-cceb004343ca/058dae79eb937c349a90ff8a4cad55f1213a121cc4d5467bd718067c1056f301/vs_Community.exe
  ██████████████████████████████  3.81 MB / 3.81 MB
Successfully verified installer hash
Starting package install...
Restart your PC to finish installation.

(21/30) Found ASIO4ALL [MichaelTippach.ASIO4ALL] Version 2.16
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://asio4all.org/downloads/ASIO4ALL_2_16.exe
   381 KB
Successfully verified installer hash
Starting package install...
Successfully installed

(22/30) Found Adobe Creative Cloud [Adobe.CreativeCloud] Version 6.3.0.207
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://prod-rel-ffc-ccm.oobesaas.adobe.com/adobe-ffc-external/core/v1/wam/download?sapCode=KCCC&wamFeature=nuj-live
                                  0.00 B / 3.15 MB
  ██████████████████████████████  3.15 MB / 3.15 MB
Successfully verified installer hash
Starting package install...
   \ Starting Stub installer...
Successfully installed

(23/30) Found AnyDesk [AnyDeskSoftwareGmbH.AnyDesk] Version 8.0.11
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://download.anydesk.com/AnyDesk.exe
  ██████████████████████████████  5.11 MB / 5.11 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(24/30) Found Ubisoft Connect [Ubisoft.Connect] Version 154.1.0.11095
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://static3.cdn.ubi.com/orbit/launcher_installer/UbisoftConnectInstaller.exe
  ██████████████████████████████   222 MB /  222 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(25/30) Found WinSCP [WinSCP.WinSCP] Version 6.3.4
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/winscp/files/WinSCP/6.3.4/WinSCP-6.3.4-Setup.exe/download
  ██████████████████████████████  11.0 MB / 11.0 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(26/30) Found Microsoft Visual C++ 2015-2022 Redistributable (x64) [Microsoft.VCRedist.2015+.x64] Version 14.40.33810.0
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://download.visualstudio.microsoft.com/download/pr/1754ea58-11a6-44ab-a262-696e194ce543/3642E3F95D50CC193E4B5A0B0FFBF7FE2C08801517758B4C8AEB7105A091208A/VC_redist.x64.exe
  ██████████████████████████████  24.2 MB / 24.2 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(27/30) Found Microsoft Visual C++ 2015-2022 Redistributable (x86) [Microsoft.VCRedist.2015+.x86] Version 14.40.33810.0
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://download.visualstudio.microsoft.com/download/pr/9c69db26-cda4-472d-bdae-f2b87f4a0177/A32DD41EAAB0C5E1EAA78BE3C0BB73B48593DE8D97A7510B97DE3FD993538600/VC_redist.x86.exe
  ██████████████████████████████  13.2 MB / 13.2 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(28/30) Found Microsoft Visual Studio Code [Microsoft.VisualStudioCode] Version 1.91.1
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://vscode.download.prss.microsoft.com/dbazure/download/stable/f1e16e1e6214d7c44d078b1f0607b2388f29d729/VSCodeUserSetup-x64-1.91.1.exe
  ██████████████████████████████  94.9 MB / 94.9 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(29/30) Found Viber [Rakuten.Viber] Version 23.1.0.0
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://download.cdn.viber.com/desktop/windows/ViberSetup.exe
  ██████████████████████████████   145 MB /  145 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(30/30) Found Dev Home (Preview) [Microsoft.DevHome] Version 0.1501.533.0
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
(1/1) Found Windows App Runtime 1.5 [Microsoft.WindowsAppRuntime.1.5] Version 1.5.3
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://aka.ms/windowsappsdk/1.5/1.5.240428000/windowsappruntimeinstall-x64.exe
  ██████████████████████████████  61.1 MB / 61.1 MB
Successfully verified installer hash
Starting package install...
Successfully installed

Successfully verified installer hash
Starting package install...
  ████████████████████████████▌   95%
Installer failed with exit code: 0x80070002 :           .

46 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.

now when I try the command again (for the --include-unknown output see comment earlier on) I get:

Microsoft Windows [Version 10.0.19045.4651]
(c) Microsoft Corporation. Με επιφύλαξη κάθε νόμιμου δικαιώματος.

C:\WINDOWS\system32>winget upgrade --all -h
No installed package found matching input criteria.
46 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.
denelon commented 3 months ago

The message about packages with "version numbers that cannot be determined" is based on packages that don't report a version in the Windows Apps & Settings (via registry keys). If you run winget list, you can see which packages appear to be installed without a version number being reported. I personally see this regularly with games installed using Steam. In the "Version" column they display "Unknown".

If you see any with a mapped source (like "winget" or "msstore"), those could be upgrades, but WinGet has no way to determine which version is installed. WinGet would try to install those upgrades if you used winget upgrade --all --include-unknown, but they may not be upgrades, and some may fail if the "latest" version is already installed.