Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
birbilis opened this issue Jul 7, 2022 · 30 comments
Closed
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Milestone

Comments

@birbilis
Copy link

birbilis commented Jul 7, 2022

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
@ghost ghost added the Needs-Triage Issue need to be triaged label Jul 7, 2022
@Trenly
Copy link
Contributor

Trenly commented Jul 7, 2022

@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. and removed Needs-Triage Issue need to be triaged labels Jul 7, 2022
@frankhale
Copy link

frankhale commented Jul 13, 2022

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
Copy link
Contributor

Trenly commented Jul 13, 2022

image

@frankhale
Copy link

Thank you @Trenly for that detailed info!!!

Looks like Windows PC Health Check was only installed using winget

image

@denelon
Copy link
Contributor

denelon commented Jul 13, 2022

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
Copy link

dgee2 commented Jul 14, 2022

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
Copy link
Author

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
Copy link

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

image

@AHBAdmin
Copy link

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

image

After upgrade:

image

@denelon
Copy link
Contributor

denelon commented Oct 27, 2022

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 denelon modified the milestones: v1.4-Client, v1.5-Client Dec 28, 2022
@denelon
Copy link
Contributor

denelon commented Feb 22, 2023

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?

@denelon denelon added the Needs-Author-Feedback Issue needs attention from issue or PR author label Feb 22, 2023
@JohnLukeBentley
Copy link

JohnLukeBentley commented Apr 5, 2023

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
Copy link

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
  • WinDirStat.
  • Zotero. Has been updated to 6.0.23 by opening Zotero directly. However, it keeps wanting to install with the above winget command.

@denelon
Copy link
Contributor

denelon commented Apr 5, 2023

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
Copy link
Author

birbilis commented Apr 5, 2023

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?

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention Issue needs attention from Microsoft and removed Needs-Author-Feedback Issue needs attention from issue or PR author labels Apr 5, 2023
@birbilis
Copy link
Author

birbilis commented Apr 5, 2023

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
Copy link
Contributor

denelon commented Apr 5, 2023

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

@birbilis
Copy link
Author

birbilis commented Apr 5, 2023

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
Copy link
Author

birbilis commented Apr 5, 2023

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
Copy link

@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

@denelon denelon modified the milestones: v1.5-Client, v.Next-Client Apr 18, 2023
@Sculas
Copy link

Sculas commented Apr 22, 2023

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
Copy link

sba923 commented Oct 23, 2023

I'm experiencing the same issue with Android Studio:

image

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

@jeffbeechg
Copy link

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
Copy link

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
Copy link

Any solution for this yet?

@denelon
Copy link
Contributor

denelon commented Jul 9, 2024

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

@denelon denelon added Needs-Author-Feedback Issue needs attention from issue or PR author and removed Needs-Attention Issue needs attention from Microsoft labels Jul 9, 2024
@jeffbeechg
Copy link

jeffbeechg commented Jul 9, 2024 via email

@microsoft-github-policy-service microsoft-github-policy-service bot added the No-Recent-Activity Issue has no recent activity label Jul 16, 2024
@jeffbeechg
Copy link

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.

@microsoft-github-policy-service microsoft-github-policy-service bot removed the No-Recent-Activity Issue has no recent activity label Jul 16, 2024
@birbilis
Copy link
Author

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.

@microsoft-github-policy-service microsoft-github-policy-service bot added Needs-Attention Issue needs attention from Microsoft and removed Needs-Author-Feedback Issue needs attention from issue or PR author labels Jul 17, 2024
@denelon denelon removed the Needs-Attention Issue needs attention from Microsoft label Jul 24, 2024
@denelon denelon modified the milestones: v.Next-Client, 1.9 Client Jul 24, 2024
@denelon
Copy link
Contributor

denelon commented Jul 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests