#6563·winget-cli

Winget appinstaller upgrade is very inconsistent

Author: yllekzCreated Sep 24, 2026Updated Sep 29, 2026
LabelsIssue-BugCommand-Upgrade

Relevant area(s)

WinGet CLI

Relevant command(s)

winget upgrade

Brief description of your issue

winget upgrade microsoft.appinstaller

This command frequently fails, seemingly at random. Often the error is "InstallerFailedWithCode"

Steps to reproduce

winget upgrade microsoft.appinstaller

Results are inconsistent. If you keep retrying, it might eventually work. It needs to successfully work on the first try.

Expected behavior

Command should work and successfully upgrade winget every time.

Actual behavior

Randomly fails, but if you retry, sometimes it randomly works.

Environment

bash
Windows.Server v10.0.17763.9245
winget v1.28.240 (trying to update it to latest)