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 detect the correct version of an installed package #3883

Closed
trebuh opened this issue Nov 13, 2023 · 2 comments
Closed
Labels
Resolution-Duplicate Issue is a duplicate
Milestone

Comments

@trebuh
Copy link

trebuh commented Nov 13, 2023

Brief description of your issue

Winget does not detect that the latest version of Microsoft Visual C++ 2015-2019 Redistributable (x86) is already installed.

Hence, winget upgrade --all always reinstall it.

Steps to reproduce

PS C:\WINDOWS\system32> winget install --id=Microsoft.VCRedist.2015+.x64 -e

Found Microsoft Visual C++ 2015-2022 Redistributable (x64) [Microsoft.VCRedist.2015+.x64] Version 14.38.32919.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/02a6d5c5-3e10-47de-8025-d97a1321d3e3/5F60592799FAE0C82578112D4B621438FFC976AB39D848D8F7623F5705A83E27/VC_redist.x64.exe
  ██████████████████████████████  24.1 MB / 24.1 MB
Successfully verified installer hash
Starting package install...
Successfully installed

PS C:\WINDOWS\system32> winget upgrade --all

Name                                                               Id                           Version       Available     Source
----------------------------------------------------------------------------------------------------------------------------------
Microsoft Visual C++ 2015-2019 Redistributable (x86) - 14.27.29112 Microsoft.VCRedist.2015+.x64 14.27.29112.0 14.38.32919.0 winget
1 upgrades available.

Installing dependencies:
(1/1) Found Microsoft Visual C++ 2015-2022 Redistributable (x64) [Microsoft.VCRedist.2015+.x64] Version 14.38.32919.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/02a6d5c5-3e10-47de-8025-d97a1321d3e3/5F60592799FAE0C82578112D4B621438FFC976AB39D848D8F7623F5705A83E27/VC_redist.x64.exe
  ██████████████████████████████  24.1 MB / 24.1 MB
Successfully verified installer hash
Starting package install...
Successfully installed

Expected behavior

The correct version should be detected, and winget upgrade --all should not yield any action.

Actual behavior

winget upgrade --all always install Microsoft Visual C++ 2015-2019 Redistributable (x86)

Environment

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

Windows: Windows.Desktop v10.0.19045.3570
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.21.2771.0
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Nov 13, 2023
@denelon
Copy link
Contributor

denelon commented Nov 13, 2023

Duplicate of #3737

@denelon denelon marked this as a duplicate of #3737 Nov 13, 2023
Copy link
Contributor

Hello @trebuh,

We've identified this as a duplicate of another issue or PR that already exists. This specific instance is being closed in favor of the linked issue. Please add your 👍 to the other issue to raise its priority. Thanks for your contribution!

Template: msftbot/duplicate/closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution-Duplicate Issue is a duplicate
Projects
None yet
Development

No branches or pull requests

2 participants