Skip to content

winget upgrade by id and by name not working for Microsoft Visual C++ 2015-2019 Redistributable #1658

Closed

Description

Brief description of your issue

I attempted to use winget upgrade feature, but it failed to match package Microsoft.VC++2015-2019Redist-x86. winget upgrade shows that a newer version of this package is available, but when I use the upgrade command to actually update this package, it cannot match the correct package either using the --name or --id option.

Steps to reproduce

Check for updates:

PS C:\> winget upgrade
image

Try update using id:
PS C:\> winget upgrade --id Microsoft.VC++2015-2019Redist-x86
image

Try update using name:
PS C:\> winget upgrade --name "Microsoft Visual C++ 2015-2019 Redistributable (x64)"
image

Try update using exact name:
PS C:\> winget upgrade --name -e "Microsoft Visual C++ 2015-2019 Redistributable (x64)"
image

Expected behavior

PS C:\> winget upgrade --id Microsoft.VC++2015-2019Redist-x86 should match to exactly one package. Match by name should also work.

Actual behavior

image

Environment

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

Windows: Windows.Desktop v10.0.22000.258
Package: Microsoft.DesktopAppInstaller v1.16.12663.0

Activity

  1. ghost added
    Needs-Triage
    on Oct 29, 2021
  2. denelon commented on Oct 29, 2021

    @denelon
    Collaborator

    This looks like a duplicate of #1413

    The issue is in the matching logic used to compare what is installed on the machine in App & Features and any manifest available at configured sources (winget in this case). We've got some changes coming with the 1.1 schema to improve matching by adding specific Apps & Features entries.

  3. denelon commented on Oct 29, 2021

    @denelon
    Collaborator

    Duplicate of #1413

  4. ghost closed this as completedon Oct 29, 2021
  5. ghost removed
    Needs-Triage
    on Oct 29, 2021
  6. ghost added
    Resolution-Duplicate
    on Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Resolution-Duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions