Closed
Labels
Issue-BugIt either shouldn't be doing this or needs an investigation.
Milestone
Description
Brief description of your issue
If a single app fails to install in winget upgrade --all, it will close the entire upgrade sequence. Leaving all following apps unupgraded. Instead, it should upgrade all apps and ignore upgrading the apps for which an error occurs.
Steps to reproduce
I Installed kite from vscode installer. Microsoft is unable to download the package/setup.exe and fails. It then does not proceed to upgrade/update any of my other apps:

Expected behavior
Winget should try to upgrade all apps and ignore upgrading the apps for which an error occurs.
Actual behavior
If a single app fails to install in winget upgrade --all, it will close the entire upgrade sequence. Leaving all following apps unupgraded.
Environment
[winget --info]
Windows Package Manager version: v1.0.11694
Windows: Windows 11
Package: App Installer Microsoft.DesktopAppInstaller_8wekyb3d8… 1.15.11694.0
Any other software?
Reacted by Oliver Schneider, George Birbilis and mmabd-hdp
Metadata
Metadata
Assignees
Labels
Issue-BugIt either shouldn't be doing this or needs an investigation.
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]`winget upgrade --all` fails if a single package cant be found[/-][+]`winget upgrade --all` fails for all packages if a single package causes error[/+][-]`winget upgrade --all` fails for all packages if a single package causes error[/-][+]`winget upgrade --all` fails for all packages even if only one single package causes error[/+]sba923 commentedon Mar 11, 2022
I concur.
Just experienced the same thing:
FWIW, here's my workaround:
using ConvertFrom-WingetStdout.ps1.
denelon commentedon Mar 11, 2022
Siddharth Agrawal (@siddagra)
I believe this has been resolved in a prior release. Can you confirm?
JSkimming commentedon Mar 18, 2022
Siddharth Agrawal (@siddagra) A single error is still preventing me from upgrading all
sba923 commentedon Mar 18, 2022
Related issue: if one of the updates is canceled (e.g. at a UAC prompt) the operation does not continue with the next update.
psychelzh commentedon Mar 21, 2022
Demitrius Nelon (@denelon) This has not been solved.
6 remaining items
sba923 commentedon Mar 28, 2022
I have reproduced this with 1.2
denelon commentedon Mar 28, 2022
James Skimming (@JSkimming) Teams is known to be problematic with the system wide installer. We have other issues tracking that. I believe what was reported is when there are multiple upgrades, and one of them fails, the other upgrades don't even run.
There are still several challenges with upgrading individual applications, and we have several bugs open for those. This bug was specifically calling out the failure for
winget upgrade --allto continue with the other packages after a single failure.denelon commentedon Mar 28, 2022
Stéphane BARIZIEN (@sba923) I'll look into that scenario. Do you know which package had the UAC you cancelled? I'll set up a test to verify that situation.
sba923 commentedon Mar 28, 2022
Not from the top of my head. Will refrain from running
wingetfrom an elevated PowerShell prompt for a while, this should trigger a repro quite easily.psychelzh commentedon Apr 12, 2022
Confirmed with v1.3:
Version info:
frederickjjoubert commentedon Jul 21, 2023
Any update on this? It's still happening:
fekoch commentedon Aug 13, 2023
Yeah, I also experience this issue with
v1.6.1573-preview:winget info