Skip to content

Keep preinstalled winget packages out of uninstall - #54

Merged
nunreasonable merged 2 commits into
nunreasonable:mainfrom
rubenmarcus:fix/winget-ownership
Nov 8, 2026
Merged

nunreasonable merged 2 commits into
nunreasonable:mainfrom
rubenmarcus:fix/winget-ownership

Conversation

@rubenmarcus

@rubenmarcus rubenmarcus commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • distinguish an effective winget installation from UPDATE_NOT_APPLICABLE (0x8A15002B)
  • record package ownership only when this setup actually installed the package
  • apply the same rule to terminal tools, PowerShell 7 and FFmpeg
  • preserve existing ownership records without duplicating IDs

Tests

  • cargo test --locked -p iiw-setup-core: 73 host tests passed
  • added Windows-only tests for exit-code classification and ownership; native winget execution was unavailable locally
  • independent review found no actionable issues

AI and files

  • Model: kimi-code/k3.1-pro
  • Files: installer/core/src/ops.rs, installer/core/src/win.rs, .github/workflows/build.yml
  • Follow-up: the setup-tests job now explicitly runs the new ops:: and win:: regressions.

Model: kimi-code/k3.1-pro\nFiles: installer/core/src/ops.rs, installer/core/src/win.rs\nAgent: omp
Signed-off-by: rubenmarcus <rubenmarcus.dev@gmail.com>
Model: kimi-code/k3.1-pro\nFiles: .github/workflows/build.yml\nAgent: omp
Signed-off-by: rubenmarcus <rubenmarcus.dev@gmail.com>
@rubenmarcus

Copy link
Copy Markdown
Contributor Author

The new Windows regressions executed and passed: winget ownership requires an effective install, existing records are preserved, and install/no-update classification is covered (37 setup tests passed).
Smoke x64 (windows-11-arm) failed before any project test ran, during git submodule update, with exit -2147483644. I tried gh run rerun --failed, but this account lacks repository admin rights.
@nunreasonable please rerun that failed job once when the run finishes; this appears to be runner infrastructure rather than a code failure.

@nunreasonable
nunreasonable merged commit a9f766d into nunreasonable:main Nov 8, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants