You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
winget upgrade by id and by name not working for Microsoft Visual C++ 2015-2019 Redistributable #1658
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
Try update using id: PS C:\> winget upgrade --id Microsoft.VC++2015-2019Redist-x86
Try update using name: PS C:\> winget upgrade --name "Microsoft Visual C++ 2015-2019 Redistributable (x64)"
Try update using exact name: PS C:\> winget upgrade --name -e "Microsoft Visual C++ 2015-2019 Redistributable (x64)"
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
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
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.
Activity
denelon commentedon Oct 29, 2021
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.
denelon commentedon Oct 29, 2021
Duplicate of #1413