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

Upgrade doesn't work for several packages #752

Closed
denelon opened this issue Feb 11, 2021 · 143 comments
Closed

Upgrade doesn't work for several packages #752

denelon opened this issue Feb 11, 2021 · 143 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Milestone

Comments

@denelon
Copy link
Contributor

denelon commented Feb 11, 2021

Edited:

The most common reasons upgrades don't work has to do with how we match an installed application against a manifest in a configured source. We are depending on data available in Windows Apps & Features to match a manifest based on the "displayName" and "version". In many cases there are multiple packages with data similar enough to make it unclear which manifest matches to an installed package.

We are working to improve the matching heuristic so we can distinguish between packages with a true update vs. packages that have a similar name and newer versions are installed "side by side".

Original issue:


Upgrade didn't work for PowerToys.

I have all of the experimental features enabled.

PS C:\Users\denelon> winget upgrade
Name                 Id                    Version         Available Source
----------------------------------------------------------------------------
Microsoft Whiteboard Microsoft.Whiteboard  21.10111.5555.0 Latest    msstore
HyperLabel           SixgillLLC.hyperlabel 1.1.10.0        Latest    msstore
PowerToys            Microsoft.PowerToys   0.31.1          0.31.2    winget
PS C:\Users\denelon> winget uprade Microsoft.PowerToys
Windows Package Manager v0.2.10191 Preview
Copyright (c) Microsoft Corporation. All rights reserved.

PS C:\Users\denelon> winget list Power
Name                     Id                                     Version     Available Source
--------------------------------------------------------------------------------------------
PowerToys                Microsoft.PowerToys                    0.31.1      0.31.2    winget
PowerShell 7-x64         {41D89B69-B90A-4CFB-9783-4B86D2B34EC3} 7.1.1.0
PowerShell 7-preview-x64 {7DDB4F02-04AE-48FA-BC1D-962D3A567FF6} 7.1.0.5
Windows Terminal Preview Microsoft.WindowsTerminalPreview       1.6.10272.0
Windows Terminal         Microsoft.WindowsTerminal              1.5.10271.0

PS C:\Users\denelon> winget upgrade Microsoft.PowerToys
--------------------------------------------------------------------------------------------
Found PowerToys [Microsoft.PowerToys]
No applicable update found.

PS C:\Users\denelon> winget --info
--------------------------------------------------------------------------------------------
Windows Package Manager v0.2.10191 Preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19042.804
Package: Microsoft.DesktopAppInstaller v1.11.10191.0
@ghost ghost added the Needs-Triage Issue need to be triaged label Feb 11, 2021
@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 Feb 11, 2021
@Shatungoo
Copy link

Is upgrade work for other apps? I have the same problem with powertoys and other apps.
No one successful upgrade. But upgrade knows about the newer version.

@megamorf
Copy link

Is upgrade work for other apps? I have the same problem with powertoys and other apps.
No one successful upgrade. But upgrade knows about the newer version.

Then please provide examples so that the devs can check if the issues you're describing and the PowerToys issue are identical.

@Shatungoo
Copy link

Shatungoo commented Feb 15, 2021

Powertoys - the same as author of this issue.
After winget install powertoys i receive new version.

PythonSoftwareFoundation.Python from msstore - No applicable update found.
AdoptOpenJDK.OpenJDK - Successfully installed, but after installation i have the same old version. It was installed through winget.

Full log

C:\Users\shatu> winget upgrade
Name                        Id                                  Version   Available Source
-------------------------------------------------------------------------------------------
Python 3.9                  PythonSoftwareFoundation.Python.3.9 3.9.496.0 Latest    msstore
AdoptOpenJDK 15.0.2+7 (x64) AdoptOpenJDK.OpenJDK                15.0.1.9  15.0.2.7  winget

PS C:\Users\shatu> winget upgrade --all
Found Python 3.9 [PythonSoftwareFoundation.Python.3.9]
This package is provided through Microsoft Store. winget may need to acquire the package from Microsoft Store on behalf of the current user.
Verifying/Requesting package acquisition...
Verifying/Requesting package acquisition success
Starting package install...
No applicable update found.

Found AdoptOpenJDK 15.0.2+7 (x64) [AdoptOpenJDK.OpenJDK]
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/AdoptOpenJDK/openjdk15-binaries/releases/download/jdk-15.0.2%2B7/OpenJDK15U-jdk_x64_windows_hotspot_15.0.2_7.msi
  ██████████████████████████████   167 MB /  167 MB
Successfully verified installer hash
Starting package install...
Successfully installed

PS C:\Users\shatu> winget upgrade
Name                        Id                                  Version   Available Source
-------------------------------------------------------------------------------------------
Python 3.9                  PythonSoftwareFoundation.Python.3.9 3.9.496.0 Latest    msstore
AdoptOpenJDK 15.0.2+7 (x64) AdoptOpenJDK.OpenJDK                15.0.1.9  15.0.2.7  winget

PS C:\Users\shatu> java -version
openjdk version "15.0.1" 2020-10-20
OpenJDK Runtime Environment AdoptOpenJDK (build 15.0.1+9)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 15.0.1+9, mixed mode, sharing)

PS C:\Users\shatu> winget -v
v0.2.10191 Preview

@LuanVSO
Copy link

LuanVSO commented Feb 24, 2021

i can't upgrade gh cli, it says it was successfully upgraded, but if you check the version installed it is still the old one

@Shatungoo
Copy link

i can't upgrade gh cli, it says it was successfully upgraded, but if you check the version installed it is still the old one

The same situation. The output is the same as in example with java above.

@denelon
Copy link
Contributor Author

denelon commented Feb 24, 2021

Thanks for the additional data points here. Some applications work "Microsoft.WindowsTerminalPreview" and "Microsoft.WindowsTerminal" while others don't.

@LuanVSO
Copy link

LuanVSO commented Feb 25, 2021

so, only msix?

@denelon denelon added this to To Do in Client-Bugs Mar 9, 2021
@arielmoisis
Copy link

Not sure if this issue is related but when running winget list I do not see a source for all my apps I have installed with winget. The ones I see with a source in winget list I can upgrade.

@jedieaston
Copy link
Contributor

On a similar note, PowerShell cannot be upgraded either (shipped as a MSI, product code in manifest).

PS C:\Users\Easton Pillay> winget show pwsh
Found PowerShell [Microsoft.PowerShell]
Version: 7.1.3
Publisher: Microsoft
AppMoniker: pwsh
Description: PowerShell is a cross-platform (Windows, Linux, and macOS) automation and configuration tool/framework that works well with your existing tools and is optimized for dealing with structured data (e.g. JSON, CSV, XML, etc.), REST APIs, and object models. It includes a command-line shell, an associated scripting language and a framework for processing cmdlets.
Homepage: https://microsoft.com/PowerShell
License: MIT
Installer:
  Type: Msi
  Download Url: https://github.com/PowerShell/PowerShell/releases/download/v7.1.3/PowerShell-7.1.3-win-x64.msi
  SHA256: 459642d8b6d69f643794df8394f28191f43e5ed35472899c4f0d8424f6d1317c
PS C:\Users\Easton Pillay> pwsh --version
PowerShell 7.1.2
PS C:\Users\Easton Pillay> winget upgrade --all
No applicable update found.
PS C:\Users\Easton Pillay> winget --version
v0.2.10191 Preview
PS C:\Users\Easton Pillay>

@YsHaNgM
Copy link

YsHaNgM commented Mar 26, 2021

Any update yet? I saw new release but not mentioning this issue.

@denelon denelon changed the title Can't Upgrade PowerToys Upgrade doesn't work for several packages Mar 26, 2021
@denelon
Copy link
Contributor Author

denelon commented Mar 26, 2021

This is primarily driven by "list". The way packages in Add/Remove Packages are mapped to package identifiers in the Windows Package Manager is fairly complex. Generally MSIX packages contain enough meta-data that it is trivial to get a match. Unfortunately, other legacy installers often don't have enough meta-data. We're working on improving list gradually, and we're thinking through several different heuristics to increase the number of matches.

@jedieaston
Copy link
Contributor

Another data point: with the most recent version of winget, GitHub CLI (shipped as an MSI) can't be upgraded:

PS C:\Users\Easton Pillay\projects\winget-pkgs\manifests\g\GitHub\cli> winget upgrade --all
Found GitHub CLI [GitHub.cli]
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/v1.8.1/gh_1.8.1_windows_amd64.msi
  ██████████████████████████████  6.56 MB / 6.56 MB
Successfully verified installer hash
Starting package install...
Successfully installed
   
PS C:\Users\Easton Pillay\projects\winget-pkgs\manifests\g\GitHub\cli> gh --version            
gh version 1.8.0 (2021-03-30)
https://github.com/cli/cli/releases/tag/v1.8.0
PS C:\Users\Easton Pillay\projects\winget-pkgs\manifests\g\GitHub\cli> 

But if you run winget install gh, it installs correctly over the old version:

PS C:\Users\Easton Pillay\projects\winget-pkgs\manifests\g\GitHub\cli> winget install gh
Found GitHub CLI [GitHub.cli]
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/v1.8.1/gh_1.8.1_windows_amd64.msi
  ██████████████████████████████  6.56 MB / 6.56 MB
Successfully verified installer hash
Starting package install...
Successfully installed
PS C:\Users\Easton Pillay\projects\winget-pkgs\manifests\g\GitHub\cli> gh --version
gh version 1.8.1 (2021-04-02)
https://github.com/cli/cli/releases/tag/v1.8.1
PS C:\Users\Easton Pillay\projects\winget-pkgs\manifests\g\GitHub\cli> 

Does upgrade run the installers with different command line arguments than install?

@ruffy91
Copy link

ruffy91 commented Apr 9, 2021

Edit: Please disregard this comment for the issue at hand.
I just found that the MSI ProductCode has to be added to the package so that upgrades can work.
I have opened a PR to update the manifest for the Package I tried to update (Bitwarden.Bitwarden) here: microsoft/winget-pkgs#10456


Another reproduction.
I also attached relevant logs and the index.db

winget install bitwarden -v 1.25.0
Found Bitwarden [Bitwarden.Bitwarden]
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/bitwarden/desktop/releases/download/v1.25.0/Bitwarden-Installer-1.25.0.exe
  ██████████████████████████████   694 KB /  694 KB
Successfully verified installer hash
Starting package install...
Successfully installed
winget list --name bitwarden
Name      Id                                   Version
------------------------------------------------------
Bitwarden 173a9bac-6f0d-50c4-8202-4744c69d091a 1.25.0
winget show bitwarden
Found Bitwarden [Bitwarden.Bitwarden]
Version: 1.25.1
Publisher: Bitwarden
Author: Bitwarden
Moniker: bitwarden
Description: Bitwarden is a free and open source password manager for individuals, teams, and business organizations.
License: GNU General Public License v3.0
License Url: https://github.com/bitwarden/desktop/blob/master/LICENSE.txt
Installer:
  Type: Nullsoft
  Locale: en-US
  Download Url: https://github.com/bitwarden/desktop/releases/download/v1.25.1/Bitwarden-Installer-1.25.1.exe
  SHA256: bca8bc4f118ec16f8ef40e98c5c5b4fc0f17c358941bc465ece9d8b96771d79f
winget upgrade
No installed package found matching input criteria.
winget upgrade bitwarden
No applicable update found.
winget upgrade --all
No applicable update found.
winget --info
Windows Package Manager v0.2.10771 Preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.19043.906
Package: Microsoft.DesktopAppInstaller v1.11.10771.0

WinGet-2021--4--9-22-36-21.337.log
WinGet-2021--4--9-22-36-51.365.log
WinGet-2021--4--9-22-35-37.737.log
WinGet-2021--4--9-22-44-59.152.log
index.zip

@Trance-Paradox
Copy link

Still showing no upgrade for vscode, git, python, cmake, MPC-HC, qbittorrent.
I have tested this packages until now.

@Shatungoo
Copy link

Additional examples, both from microsoft:
Microsoft.Teams - Installer failed with exit code: 1603
Microsoft.dotnetRuntime - upgrade was successful, but i still have an old version

PS C:\WINDOWS\system32> winget upgrade
Name Id Version Available Source
Microsoft Teams Microsoft.Teams 1.2.0.19260 1.4.00.8872 winget
.NET Core Runtime Microsoft.dotnetRuntime 3.1.11.29516 5.0.5.29917 winget
PS C:\WINDOWS\system32> winget upgrade --all
Found Microsoft Teams [Microsoft.Teams]
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.4.00.8872/Teams_windows_x64.msi
██████████████████████████████ 106 MB / 106 MB
Successfully verified installer hash
Starting package install...
Installer failed with exit code: 1603
Installer log is available at: C:\Users\Leanid_Miron\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\WinGet-Microsoft.Teams.1.4.00.8872-2021-04-23-14-49-29.696.log
Found .NET Core Runtime [Microsoft.dotnetRuntime]
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/c1ef0b3f-9663-4fc5-85eb-4a9cadacdb87/52b890f91e6bd4350d29d2482038df1c/windowsdesktop-runtime-5.0.5-win-x64.exe
██████████████████████████████ 52.4 MB / 52.4 MB
Successfully verified installer hash
Starting package install...
Successfully installed
PS C:\WINDOWS\system32> winget upgrade
Name Id Version Available Source
Microsoft Teams Microsoft.Teams 1.2.0.19260 1.4.00.8872 winget
.NET Core Runtime Microsoft.dotnetRuntime 3.1.11.29516 5.0.5.29917 winget

@jedieaston
Copy link
Contributor

jedieaston commented Apr 23, 2021

You don't happen to still have the logs from those. do you? I'm curious about where it is failing.

@denelon
Copy link
Contributor Author

denelon commented Apr 27, 2021

We're starting to work through some of the end to end upgrade scenarios. If you know of any other specific packages that don't seem to upgrade correctly, let us know the package identifiers so we can dig in.

@jedieaston
Copy link
Contributor

iTunes (Apple.iTunes) doesn't upgrade (I don't know if it is just because it's an exe or...), and WinGet doesn't even try, although it knows there's an upgrade available.

PS C:\Users\Easton Pillay\projects\winget-pkgs> winget upgrade
Name   Id           Version    Available  Source
------------------------------------------------
iTunes Apple.iTunes 12.11.0.26 12.11.3.17 winget
PS C:\Users\Easton Pillay\projects\winget-pkgs> winget upgrade --all
No applicable update found.
PS C:\Users\Easton Pillay\projects\winget-pkgs>

@JohnMcPMS
Copy link
Member

Most likely if you are seeing list or raw upgrade commands showing an upgrade available, but upgrade --all or upgrade foo is not doing anything, the issue will be fixed by #904 . I'm sure @denelon will be hot on my heels to get a build out too 😄

@denelon
Copy link
Contributor Author

denelon commented Jun 21, 2022

This issue was created as a placeholder to track the more generic winget upgrade <package> doesn't work.

Many improvements have been made in Windows Package Manager 1.3 to address these issues.

In some cases, it's related to the matching logic used to detect which packages match an installed application.
We've implemented several improvements to matching and added Windows Apps & Features data to the schema.

In others, it's related to the scope of the installed program and the scope the user is in.
We've implemented a key in the manifest to inform users when they will need to elevate.

Still others are related to nested installers.
We can now identify an MSI inside of an EXE based installer.

Now that the majority of use cases are known, I'm going to close this Issue in favor of tracking the specific issues that are causing the problem, and if the issue is related to the installer itself, it will be moved to winget-pkgs.

@denelon denelon closed this as completed Jun 21, 2022
Client-Bugs automation moved this from Assigned to Done Jun 21, 2022
Client-Current automation moved this from To do to Done Jun 21, 2022
@Karl-WE
Copy link
Contributor

Karl-WE commented Jun 21, 2022

I can confirm there are major improvements to the behaviour. Thanks for the persistence and solving them.

@dschulman-repay
Copy link

Even some Microsoft packages still seem to have problems of this type. Using WinGet v1.3.1872:

winget upgrade
Name                                      Id               Version          Available        Source
---------------------------------------------------------------------------------------------------
Microsoft 365 Apps for enterprise - en-us Microsoft.Office 16.0.14931.20604 16.0.15225.20288 winget
1 upgrades available.
winget upgrade --id=Microsoft.Office
Found Microsoft 365 Apps for enterprise [Microsoft.Office] Version 16.0.15225.20288
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://officecdn.microsoft.com/pr/wsus/setup.exe
  ██████████████████████████████  8.03 MB / 8.03 MB
Installer hash does not match; this cannot be overridden when running as admin

Does this particular package require some kind of enterprise admin permissions I don't have?

@denelon
Copy link
Contributor Author

denelon commented Jul 19, 2022

No, that's clearly a "hash mismatch". That means the installer file changed at the URL "https://officecdn.microsoft.com/pr/wsus/setup.exe". We have automation that will check daily and if a mismatch is detected, we will update the hash after validating the package.

@dschulman-repay
Copy link

dschulman-repay commented Jul 20, 2022

Of course I understand what a bona fide hash mismatch is, and why such a situation would cause WinGet to throw an error, but I have a feeling that the root cause is something else in this case.

This particular issue has persisted for several months now, and if I try to invoke WinGet against this id with the install option (with all Office applications closed), I get

winget install --id=Microsoft.Office
Found Microsoft 365 Apps for enterprise [Microsoft.Office] Version 16.0.15330.20218
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

winget upgrade
Name                                      Id               Version          Available        Source
---------------------------------------------------------------------------------------------------
Microsoft 365 Apps for enterprise - en-us Microsoft.Office 16.0.14931.20604 16.0.15330.20218 winget
1 upgrades available.

The installation reports success, but subsequent checks don't seem to verify that. Others have reported similar issues. If I do winget show Microsoft.Office, I get

Found Microsoft 365 Apps for enterprise [Microsoft.Office]
Version: 16.0.15330.20218
Publisher: Microsoft Corporation
Publisher Url: https://www.microsoft.com/
Publisher Support Url: https://support.office.com/
Author: Microsoft Corporation
Moniker: office
Description: Microsoft 365 Apps for enterprise is the most productive and most secure Office experience for enterprises, allowing your teams to work together seamlessly from anywhere, anytime.
Homepage: https://www.office.com/
License: Commercial
License Url: https://docs.microsoft.com/legal/termsofuse
Privacy Url: https://privacy.microsoft.com/
Copyright: Copyright (C) Microsoft Corporation
Copyright Url: https://docs.microsoft.com/legal/termsofuse
Installer:
  Type: exe
  Download Url: https://officecdn.microsoft.com/pr/wsus/setup.exe
  SHA256: fea967e44aed1cd406d2fe4f60f7199375fff30115864600c2da4dbf15425dde

I can download setup.exe from that URL listed near the bottom, and running it has the same result: the installation reports success, but the version(s) don't change. And, by the way, I can use PowerShell to check the file integrity using the hash listed on the last line of the above output: (Get-FileHash setup.exe).Hash does indeed confirm this.

@zuhairmahd
Copy link

Still having issues upgrading packages. These packages are constantly showing up as needing upgrades, but they are all ready up to date::

PS C:\Windows\System32> winget upgrade --all
Name Id Version Available Source

Winamp Radionomy.Winamp 5.8 5.8 winget
Python 3.10.4 (64-bit) Python.Python.3 < 3.10.5 3.10.4150.0 winget
Microsoft ASP.NET Core 6.0.6 - Shared Framework (x86) Microsoft.DotNet.AspNetCore.6 6.0.6 6.0.7 winget
Microsoft Windows Desktop Runtime - 6.0.6 (x86) Microsoft.DotNet.DesktopRuntime.6 6.0.6 6.0.7 winget
Microsoft .NET SDK 6.0.203 (x64) Microsoft.DotNet.SDK.6 6.0.203 6.0.302 winget
5 upgrades available.

(1/5) Found Winamp [Radionomy.Winamp] Version 5.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://download.nullsoft.com/winamp/misc/winamp58_3660_beta_full_en-us.exe
██████████████████████████████ 7.82 MB / 7.82 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(2/5) Found Python 3 [Python.Python.3] Version 3.10.4150.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.python.org/ftp/python/3.10.4/python-3.10.4-amd64.exe
██████████████████████████████ 27.1 MB / 27.1 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(3/5) Found Microsoft ASP.NET Core Runtime 6.0 [Microsoft.DotNet.AspNetCore.6] Version 6.0.7
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://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/6.0.7/aspnetcore-runtime-6.0.7-win-x64.exe
██████████████████████████████ 8.58 MB / 8.58 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(4/5) Found Microsoft .NET Windows Desktop Runtime 6.0 [Microsoft.DotNet.DesktopRuntime.6] Version 6.0.7
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://dotnetcli.azureedge.net/dotnet/WindowsDesktop/6.0.7/windowsdesktop-runtime-6.0.7-win-x64.exe
██████████████████████████████ 55.0 MB / 55.0 MB
Successfully verified installer hash
Starting package install...
Successfully installed

(5/5) Found Microsoft .NET SDK 6.0 [Microsoft.DotNet.SDK.6] Version 6.0.302
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://dotnetcli.azureedge.net/dotnet/Sdk/6.0.302/dotnet-sdk-6.0.302-win-x64.exe
██████████████████████████████ 196 MB / 196 MB
Successfully verified installer hash
Starting package install...
Successfully installed

PS C:\Windows\System32>
PS C:\Windows\System32> winget upgrade
Name Id Version Available Source

Winamp Radionomy.Winamp 5.8 5.8 winget
Python 3.10.4 (64-bit) Python.Python.3 < 3.10.5 3.10.4150.0 winget
Microsoft ASP.NET Core 6.0.6 - Shared Framework (x86) Microsoft.DotNet.AspNetCore.6 6.0.6 6.0.7 winget
Microsoft Windows Desktop Runtime - 6.0.6 (x86) Microsoft.DotNet.DesktopRuntime.6 6.0.6 6.0.7 winget
Microsoft .NET SDK 6.0.203 (x64) Microsoft.DotNet.SDK.6 6.0.203 6.0.302 winget
5 upgrades available.
PS C:\Windows\System32> exit

C:\Windows\System32>

@denelon denelon unpinned this issue Jul 25, 2022
@HrMitrev
Copy link

HrMitrev commented Aug 24, 2022

Hi!
I have similar problem with Microsoft.Office:

~ $ winget upgrade --all
Name                                      Id               Version          Available        Source
---------------------------------------------------------------------------------------------------
Microsoft 365 Apps for enterprise - en-us Microsoft.Office 16.0.15427.20210 16.0.15427.20220 winget
1 upgrades available.

(1/1) Found Microsoft 365 Apps for enterprise [Microsoft.Office] Version 16.0.15427.20220
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://officecdn.microsoft.com/pr/wsus/setup.exe
  ██████████████████████████████  8.03 MB / 8.03 MB
Successfully verified installer hash
Starting package install...
Successfully installed

~ $ winget list Microsoft.Office
Name                                      Id               Version          Available        Source
---------------------------------------------------------------------------------------------------
Microsoft 365 Apps for enterprise - en-us Microsoft.Office 16.0.15427.20210 16.0.15427.20220 winget

one thing to note - I have chocolatey and originally this app was installed with choco install office365proplus. Also it was upgraded via chocolatey before winget upgrade --all. I am not sure how winget checks the version but it seems that something's off. chocolatey reports v15330.20230

@OfficialEsco
Copy link

one thing to note - I have chocolatey and originally this app was installed with choco install office365proplus. Also it was upgraded via chocolatey before winget upgrade --all. I am not sure how winget checks the version but it seems that something's off. chocolatey reports v15330.20230

WinGet uses the information reported by the Control Panel instead of Chocolatey which reports the latest version it installed.
The good thing is that both WinGet and Chocolatey reports the wrong version because you have 16.0.15427.20210 installed.
The bad thing is that the damn Microsoft Office installer installs the version based on region and probably some more crap...
Which doesn't make any sense when the setup.exe claims to install 16.0.15427.20220

So in theory this is just a Microsoft issue..

@xarthurx
Copy link

Add to the list: Rust 1.62 (MSVC 64-bit)

Rust 1.62 (MSVC 64-bit)                   Rustlang.Rust.MSVC                    1.62.1.0         1.63.0           winget

@OfficialEsco
Copy link

Make a issue at https://github.com/microsoft/winget-pkgs/issues.

@HrMitrev
Copy link

So in theory this is just a Microsoft issue..

The funny thing is that WinGet is also a Microsoft project.

Are there any workarounds to force WinGet to ignore that package? Now winget upgrade --all is totally unusable because every time it takes about a minute to run the installer

@denelon
Copy link
Contributor Author

denelon commented Aug 24, 2022

@OfficialEsco
Copy link

So in theory this is just a Microsoft issue..

The funny thing is that WinGet is also a Microsoft project.

Are there any workarounds to force WinGet to ignore that package? Now winget upgrade --all is totally unusable because every time it takes about a minute to run the installer

WinGet is a highly community run project, Microsoft Office is a proprietary software.
The WinGet community can do just as much as Chocolatey about these issues. The only difference being how it matches and stores what is installed.

@beppler
Copy link

beppler commented Oct 11, 2022 via email

@pplmx
Copy link

pplmx commented Nov 21, 2022

Same issue.
image
image

@saurabhsri108
Copy link

This is a serious issue. We need a way to exclude the packages or fix this. Keeps installing these 2 over and over.

image

@sigmaphi007
Copy link

Surp

I had this problem when two versions of the same application was installed, one per machine and one per user. I removed one of them and this solved the problem.

This fixed it, removing the wide machine installer fixed it. But surprised it's still happening

@JohnLukeBentley
Copy link

Still getting this problem with ...

Name                             Id                     Version Available Source
--------------------------------------------------------------------------------
Microsoft .NET SDK 6.0.311 (x64) Microsoft.DotNet.SDK.6 6.0.311 6.0.408   winget

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
Development

No branches or pull requests