Skip to content

Fix PowerShell window flashing during uninstall protection - #13

Open
BreakTT wants to merge 1 commit into
aadeshrao123:masterfrom
BreakTT:fix/issue-12-hide-powershell
Open

Fix PowerShell window flashing during uninstall protection#13
BreakTT wants to merge 1 commit into
aadeshrao123:masterfrom
BreakTT:fix/issue-12-hide-powershell

Conversation

@BreakTT

@BreakTT BreakTT commented Aug 24, 2026

Copy link
Copy Markdown

Summary

  • launch the Windows PowerShell CIM query with CREATE_NO_WINDOW
  • prevent the uninstall-protection scan from flashing a console window
  • keep the existing uninstall detection behavior unchanged

Root cause

While uninstall protection is active, Focuser periodically reads the
command lines of suspected uninstall processes. On Windows this starts
PowerShell without a hidden-window creation flag, causing a console
window to briefly appear on every scan.

Testing

  • cargo fmt --all -- --check
  • Windows-target cargo check for focuser-common
  • Windows-target Clippy for focuser-common
  • cargo test -p focuser-common — 86 unit tests and 1 doc test passed

Fixes #12

Launch the Windows CIM query with CREATE_NO_WINDOW so the background uninstall-protection scan does not flash a console window.
@hsmvsdawrld

Copy link
Copy Markdown

When will this patch be released? I tried applying it and failed!
Thank you for your great work; I really appreciate it.

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.

Powershell constantly popping up and then disappearing when locking a block list

2 participants