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 fails to list correct version and reinstalls even if latest version is installed #94165

Closed
AbhishekAlate opened this issue Jan 18, 2023 · 8 comments · Fixed by #96976
Labels
Help-Wanted This is a good candidate work item from the community. Issue-Bug It either shouldn't be doing this or needs an investigation.
Milestone

Comments

@AbhishekAlate
Copy link

AbhishekAlate commented Jan 18, 2023

Brief description of your issue

Incorrect version of the product is reported on winget upgrade CLI and winget upgrade --id Amazon.WorkspacesClient reinstalls the latest version.

I see the right version in Apps:
Installed version

Example:
Amazon WorkSpaces Amazon.WorkspacesClient > 3.1.10 5.6.2.3417 winget

Steps to reproduce

  1. Install older version from https://d2td7dqidlhjx7.cloudfront.net/prod/global/windows/Amazon+WorkSpaces.msi
  2. Run winget upgrade to lilst the packages, it'll show the incorrect version
  3. Run winget upgrade --id Amazon.WorkspacesClient

Expected behavior

It should not reinstall version 5.6.2.

Actual behavior

It reinstalls the latest version.

Environment

winget --info
Windows Package Manager v1.3.2691
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22000.1455
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.18.2691.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale
@ghost ghost added the Needs-Triage This work item needs to be triaged by a member of the core team. label Jan 18, 2023
@mdanish-kh
Copy link
Contributor

Similar issue to #91888 where the newer version is missing ARP Entries

@AbhishekAlate AbhishekAlate changed the title winget upgrade fails to install new version and list correct version winget upgrade fails list correct version Jan 18, 2023
@AbhishekAlate AbhishekAlate changed the title winget upgrade fails list correct version winget upgrade fails list correct version and reinstalls even if latest version is installed Jan 18, 2023
@AbhishekAlate AbhishekAlate changed the title winget upgrade fails list correct version and reinstalls even if latest version is installed winget upgrade fails to list correct version and reinstalls even if latest version is installed Jan 18, 2023
@mdanish-kh
Copy link
Contributor

Resolved for me when upgrading from 3.1.10 to 5.6.2. @AbhishekAlate Please confirm at your end.

~ winget list workspaces
Name              Id                      Version Available Source
------------------------------------------------------------------
Amazon WorkSpaces Amazon.WorkspacesClient 3.1.10  5.6.2     winget
~ winget upgrade workspaces
Found Amazon WorkSpaces [Amazon.WorkspacesClient] Version 5.6.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://d2td7dqidlhjx7.cloudfront.net/prod/global/windows/Amazon+WorkSpaces.msi
  ██████████████████████████████   351 MB /  351 MB
Successfully verified installer hash
Starting package install...
Successfully installed
~ winget list workspaces
Name              Id                      Version Source
---------------------------------------------------------
Amazon WorkSpaces Amazon.WorkspacesClient 5.6.2   winget

@AbhishekAlate
Copy link
Author

That's is surprising, let me check, I ran this just before posting.

@denelon denelon transferred this issue from microsoft/winget-cli Jan 19, 2023
@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. Help-Wanted This is a good candidate work item from the community. and removed Needs-Triage This work item needs to be triaged by a member of the core team. labels Jan 19, 2023
@AbhishekAlate
Copy link
Author

Users are not facing this issue anymore, thank you for the quick response, I really appreciate it.

@AlejoMendoza87
Copy link

Still happening to me
image
image

@denelon
Copy link
Contributor

denelon commented Feb 16, 2023

What is displayed in Windows Apps & Features?

@mdanish-kh
Copy link
Contributor

mdanish-kh commented Feb 16, 2023

This is again the same case where the newer version is missing ARP Entries. I've opened a PR to resolve this issue.

Edit: @AlejoMendoza87 The issue should be resolved now.

@AlejoMendoza87
Copy link

It's working now, let's hope it doesn't break in the next update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help-Wanted This is a good candidate work item from the community. Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants