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 upgrade does not regognize installed updates #2349

Closed
Heldenkrieger01 opened this issue Jul 20, 2022 · 6 comments
Closed

winget upgrade does not regognize installed updates #2349

Heldenkrieger01 opened this issue Jul 20, 2022 · 6 comments
Labels
Area-External Issue outside of winget-cli source Issue-Bug It either shouldn't be doing this or needs an investigation.
Milestone

Comments

@Heldenkrieger01
Copy link

Brief description of your issue

I have installed Typora.Typora via winget, previously version 1.3.6. After the prompt to update to 1.3.8, which was successfully installed by winget, the update keeps appearing on winget upgrade and winget will try to update again.

Almostm the same thing happens with Rustlang.Rustup. The version says unknown, avialable is 1.24.3, but this version is already installed.

Steps to reproduce

Expected behavior

winget recognizes the installed version correctly and does not prompt for an unnecessary update.

Actual behavior

winget prompts for updates which are already installed

Environment

Windows Package Manager v1.2.11601

Windows: Windows.Desktop v10.0.22622.290
Package: Microsoft.DesktopAppInstaller v1.17.11601.0
@ghost ghost added the Needs-Triage Issue need to be triaged label Jul 20, 2022
@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. Area-External Issue outside of winget-cli source and removed Needs-Triage Issue need to be triaged labels Jul 20, 2022
@denelon
Copy link
Contributor

denelon commented Jul 20, 2022

If the version is displayed as "Unknown" the installer for that package didn't report a version to the registry as you would see in Windows Apps & Features or in Add Remove Programs. It's up to the installer to report the software version installed.

If an "upgrade" is actually just installing a newer version of a package side-by-side then the Windows Package Manager would see the "older" version and still think an upgrade is necessary. We have work in progress for Windows Package Manager 1.4-preview to address this scenario.

@Trenly
Copy link
Contributor

Trenly commented Jul 20, 2022

Typora actually was using the wrong URL's, I've submitted two PR's over at pkgs to fix Typora

@zuhairmahd
Copy link

This is happening on Microsoft packages:

PS C:\Windows\System32>
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>

@Trenly
Copy link
Contributor

Trenly commented Jul 21, 2022

@zuhairmahd - As denelon said

If an "upgrade" is actually just installing a newer version of a package side-by-side then the Windows Package Manager would see the "older" version and still think an upgrade is necessary. We have work in progress for Windows Package Manager 1.4-preview to address this scenario.

This is what is causing your issue with both Python and the Microsoft packages. See also #2345 and #1413

@Heldenkrieger01
Copy link
Author

Typora actually was using the wrong URL's, I've submitted two PR's over at pkgs to fix Typora

After another install of the update, Typora finally went away, thank you!

@denelon denelon closed this as completed Jul 21, 2022
@krystofkrticka
Copy link

krystofkrticka commented Jul 22, 2022

I also have this issue if I take Python as example it says that there is newer version but that's not true
image
this is what winget shows but when I open appwiz.cpl and search for Python I have higher version than what winget says.
image

Same goes with UltraVNC from which winget says I have 1.3.6.0 but appwiz.cpl says that I have version 1.3.8.1.

I'm using winget version 1.4.2011-preview

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

No branches or pull requests

5 participants