Repository navigation
win32: fix installer's context menu COM surrogate kill command - #344505
Merged
Robo (deepak1556) merged 2 commits intoOct 27, 2026
Merged
Robo (deepak1556) merged 2 commits into
Robo (deepak1556) merged 2 commits into
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The narrow fix addresses the reported parsing failure while retaining process-name and CLSID filtering, with no unresolved findings.
No open issues 🎉
What changed in this PR
Fixes the Windows installer’s PowerShell command for stopping the context-menu COM surrogate, addressing the cleanup hang reported in #318029.
Changes:
- Corrects quote escaping so the PowerShell process filter parses successfully.
- Matches the context-menu CLSID anywhere in the
dllhost.execommand line rather than requiring the/Processid:prefix.
| File | Description |
|---|---|
build/win32/code.iss |
Fixes command quoting and broadens CLSID matching for context-menu surrogate cleanup. |
Review effort: Balanced
Robo (deepak1556)
force-pushed
the
fix/win32-installer-com-surrogate-kill
branch
from
October 27, 2026 10:34
d048824 to
a741855
Compare
Robo (deepak1556)
approved these changes
Oct 27, 2026
Robo (deepak1556)
left a comment
Collaborator
There was a problem hiding this comment.
LGTM, thanks!
Dirk Bäumer (dbaeumer)
approved these changes
Oct 27, 2026
Dirk Bäumer (dbaeumer)
approved these changes
Oct 27, 2026
Robo (deepak1556)
enabled auto-merge (squash)
October 27, 2026 10:39
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 #318029, assisted by Claude Opus 5.5
KillContextMenuComSurrogateinbuild/win32/code.isspasses-Filter ""Name = 'dllhost.exe'""topowershell.exe -Command "...". powershell.exe doesn't treat""as an escaped quote, so the script fails to parse (The string is missing the terminator: ".) and exits 1. The context menudllhost.exeis never stopped, soinno_updater --gchangs retrying deletion of the old commit folder.Changes:
\"for the inner quotes so they survive argv parsing{#FileExplorerContextMenuCLSID}anywhere in the dllhost command line instead of only*/Processid:{CLSID}*, this should make it less fragileHow to test
dllhost.exestartsdllhost.exehosting the context menu CLSID is stopped and the old commit folder is removed withoutinno_updaterhangingAlso verified standalone by extracting the
Command :=expression, evaluating it with Inno Pascal string rules and running it via ShellExecute against a fakedllhost.exewith/Processid:{GUID}in its command line:TerminatorExpectedAtEndOfString), process not killed