Skip to content

Print winget's Exit Code in Hex at the Remaining Windows Host-Setup Sites #2810

Closed

Description

@ptr727

install-tools.ps1 now prints a failed winget call's exit code in hex beside the decimal (winget exited -1978335226 (0x8A150006)), since the hex form is the one winget documents its codes under and the signed decimal matches nothing a search finds. The same decimal-only message remains at three other sites, found by the local strict review of the branch that added it:

  • host-setup/windows/upgrade-host.ps1, the winget upgrade --all failure warning (winget exited $code, so one or more packages did not upgrade), which can hit the same Inno Setup files-in-use cancel a Git for Windows upgrade does.
  • host-setup/bootstrap.ps1, the PowerShell 7 install failure (winget exited $wingetExit installing PowerShell 7).
  • host-setup/menu.ps1, the same PowerShell 7 install failure.

Done when each of those prints the hex form beside the decimal, and upgrade-host.ps1 also reads out the installer log's reason the way install-tools.ps1's Write-InstallFailure does, if the per-package log for an --all run can be matched to the package that failed.

Activity

  1. added
    pre-existing
    script
    on Oct 11, 2026
  2. ptr727 commented on Oct 23, 2026

    @ptr727
    OwnerAuthor

    Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a tracker, a wording item, or a guard shape no session has produced is closed rather than worked. Reopen with the input and the wrong result if this issue states one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pre-existingscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions