microsoft / microsoft/winget-cli
Failing to update Microsoft.VCRedist.2013 (x86 and x64)
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Relevant area(s)
WinGet CLI
Relevant command(s)
winget upgrade
Brief description of your issue
Hello,
I have 2 outdated versions of VC++2013 installed, which WinGet correctly detects:
They were installed as a dependency, probably by a game or something.
However attempting to upgrade both results in the following errors:
C:\Windows\system32>winget upgrade Microsoft.VCRedist.2013.x86
Found Microsoft Visual C++ 2013 Redistributable (x86) [Microsoft.VCRedist.2013.x86] Version 12.0.40664.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/10912113/5da66ddebb0ad32ebd4b922fd82e8e25/vcredist_x86.exe
██████████████████████████████ 6.20 MB / 6.20 MB
Successfully verified installer hash
Starting package uninstall...
An unexpected error occurred while executing the command:
0x800401f5 : Application not found
C:\Windows\system32>
C:\Windows\system32>winget upgrade Microsoft.VCRedist.2013.x64
Found Microsoft Visual C++ 2013 Redistributable (x64) [Microsoft.VCRedist.2013.x64] Version 12.0.40664.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/10912041/cee5d6bca2ddbcd039da727bf4acb48a/vcredist_x64.exe
██████████████████████████████ 6.86 MB / 6.86 MB
Successfully verified installer hash
Starting package uninstall...
An unexpected error occurred while executing the command:
0x800401f5 : Application not found
C:\Windows\system32>
Steps to reproduce
- Install VC++2013 12.0.30501.0
- Attempt to upgrade using WinGet
Expected behavior
Package updated successfully
Actual behavior
Starting package uninstall...
An unexpected error occurred while executing the command:
0x800401f5 : Application not found
Environment
NOTE: This is Windows 10 21H2 Enterprise LTSC, and it is up to date. I installed WinGet from the .msixbundle distribution linked in this repo. Just mentioning as it is not explicit in the below output.
Windows Package Manager v1.11.430
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.19044.6216
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.26.430.0
Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User) %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User) %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root C:\Program Files\WinGet\Packages
Portable Package Root (x86) C:\Program Files (x86)\WinGet\Packages
Installer Downloads %USERPROFILE%\Downloads
Configuration Modules %LOCALAPPDATA%\Microsoft\WinGet\Configuration\Modules
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
Admin Setting State
--------------------------------------------------
LocalManifestFiles Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride Disabled
LocalArchiveMalwareScanOverride Disabled
ProxyCommandLineOptions Disabled
DefaultProxy Disabled
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with winget upgrade Microsoft.VCRedist.2013.x86 and the x64 package on the stated Windows 10 21H2 environment. Trace the uninstall stage that reports 0x800401f5 (Application not found) for the VC++ 2013 installers. Done means both packages can upgrade successfully, with the existing reproduction steps no longer producing that error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100