-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Description
Brief description of your issue
Latest VCRedist 2010 x64 in winget-pkgs is 10.0.40219
.
- https://github.com/microsoft/winget-pkgs/tree/master/manifests/m/Microsoft/VCRedist/2010/x64
- (This is actually
10.0.40219.**325**
)
Problem is that there have been several releases 10.0.40219.x
, but Winget does not seem to detect the 4th version number position. Newest right now: 10.0.40219.473
.
- https://github.com/abbodi1406/vcredist/tree/master/source_links#microsoft-visual-c-2010-redistributables---v10
- https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2010-vc-100-sp1-no-longer-supported
Output from winget list vcredist
C:\Users\olavb>winget list vcredist
Name Id Version Source
---------------------------------------------------------------------------------------------------------------------
Microsoft Visual C++ 2013 Redistributable (x86) - 12.0.40664 Microsoft.VCRedist.2013.x86 12.0.40664.0 winget
Microsoft Visual C++ 2015-2022 Redistributable (x86) - 14.34.31931 Microsoft.VCRedist.2015+.x86 14.34.31931.0 winget
Microsoft Visual C++ 2015-2022 Redistributable (x64) - 14.34.31931 Microsoft.VCRedist.2015+.x64 14.34.31931.0 winget
Microsoft Visual C++ 2010 x64 Redistributable - 10.0.40219 Microsoft.VCRedist.2010.x86 10.0.40219 winget
C:\Users\olavb>
Adding a newer version to winget-pkgs probably would likely not offer users with previous versions installed an upgrade.
This behavior from Winget is probably expected, because the uninstall info written by the installer to the registry does not include the full version number (DisplayVersion
).
A workaround to get full version info is:
Get-ItemPropertyValue -Path 'Registry::HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\10.0\VC\VCRedist\x64' -Name 'Version'
Anyways, is there anything winget-cli
can do, or should do, to be able to catch edge cases like this? Add ability for custom detection methods maybe?
Steps to reproduce
Install: winget install --id Microsoft.VCRedist.2010.x64 --silent
List: winget list Microsoft.VCRedist.2010.x64
Expected behavior
Full version number is displayed.
Actual behavior
4th digit/position of the version number is missing, thus can't validate whether newer versions are available.
Environment
Windows Package Manager v1.4.10173
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.19045.2486
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.10173.0