Repository navigation
Fixes uninstall dispatch for EXE/Burn ARP entries whose registry subkey is GUID-shaped. - #57
Open
theKBro (theKBro) wants to merge 2 commits into
Open
theKBro (theKBro) wants to merge 2 commits into
theKBro (theKBro) wants to merge 2 commits into
Conversation
Contributor
Author
|
hey Marc-André Moreau (@mamoreau-devolutions) here is another one! |
Marc-André Moreau (mamoreau-devolutions)
requested a balanced review from Copilot
October 21, 2026 12:57
Copilot started reviewing on behalf of
Marc-André Moreau (mamoreau-devolutions)
October 21, 2026 12:58
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The narrow dispatch guards are consistent across implementations, with no blocking issues identified; tests were inspected but not executed.
No open issues 🎉
What changed in this PR
Fixes uninstall dispatch so GUID-shaped EXE/Burn registry keys are not mistaken for MSI product codes.
Changes:
- Require
WindowsInstallerDWORD1for direct MSI dispatch in Rust and .NET. - Preserve registered uninstall-command fallback and existing MSI behavior.
- Add tests for missing,
0, and1values.
| File | Description |
|---|---|
| rust/crates/pinget-core/src/lib.rs | Adds the MSI eligibility guard and regression tests. |
| dotnet/src/Devolutions.Pinget.Core/InstallerDispatch.cs | Adds the matching .NET eligibility guard. |
| dotnet/src/Devolutions.Pinget.Core.Tests/CoreTests.cs | Tests .NET registry-value classification. |
Review effort: Balanced
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes uninstall dispatch for EXE/Burn ARP entries whose registry subkey is GUID-shaped. Such entries were incorrectly sent to
msiexec, which could return error 1605 before Pinget tried the registered Burn uninstaller.The problem was the selected uninstaller, not an incorrect exit code: a Burn bundle's GUID-shaped ARP key is not necessarily an MSI ProductCode.
Changes
WindowsInstallerDWORD being1in both Rust and .NET.0, and1WindowsInstallervalues in both implementations.I detected this when trying to uninstall python.