Skip to content

Add Windows 11 modern context menu support - #3143

Draft
DRSDavidSoft wants to merge 2 commits into
mainfrom
feature/windows11-context-menu
Draft

DRSDavidSoft wants to merge 2 commits into
mainfrom
feature/windows11-context-menu

Conversation

@DRSDavidSoft

@DRSDavidSoft DRSDavidSoft commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Windows 11 currently puts Cmder's classic menu command behind Show more options. This adds an opt-in Cmder Here command to the modern menu for one filesystem folder, a folder background, or a drive on x64 Windows 11 22H2 and later.

Related: #2788. I followed the link in its HTML comment to grepWin's implementation. This is original MIT code using Windows SDK/WRL; no GPL source or external native libraries were imported.

  • Add a native IExplorerCommand, sparse identity package, and current-user /REGISTER MODERN / /UNREGISTER MODERN commands. Existing USER / ALL registration stays available.
  • Keep /C and ConEmu /SINGLE preferences per user, and update them without redeploying an unchanged package. Launch through the existing desktop Explorer so the terminal retains its normal settings and credentials instead of inheriting the menu package's identity.
  • Protect other publishers and portable installations, validate filesystem configuration roots, and restore owned preference bytes on registration failure. Unregistration leaves Cmder profiles and other packages alone; Windows manages the removed package's app data.
  • Build and include the optional integration in every archive variant. Add setup/signing documentation, launcher help, CI, and regression tests.

Validation:

  • Native COM tests: 757 assertions in each Win32/x64 Debug/Release configuration; real built DLL exports, class factory, interfaces, lifetime, selection/background behavior, automation errors, preferences, and argument boundaries.
  • Launcher Win32/x64 regression tests passed; launcher Debug Win32/x64 and the integrated Release build passed.
  • Windows PowerShell 5.1 and PowerShell 7: 42 isolated registration cases / 330 assertions each, including the actual built package and assets. Both shells independently packed and verified all nine archive variants, including byte-exact integration payloads.
  • Actual Windows 11 build 26100: temporary development-package registration, packaged COM activation and invocation, exact Unicode/space/metacharacter arguments and working directory, unpackaged launcher and terminal child, and clean unregistration passed. The committed runtime regression script verified two consecutive invocations with different configuration roots and /SINGLE preferences without package redeployment. Developer Mode was already enabled; no trust setting or Explorer restart was needed.
  • Actionlint, build-helper regressions, trailing-whitespace and diff checks passed.

The CI package is unsigned. Ordinary end-user installation needs a package signed with a trusted certificate; the builder supports that explicitly. Visual Explorer inspection and trusted production deployment remain maintainer acceptance checks. Full SDK XSD compilation is unavailable in the tested SDK because of an unresolved schema declaration; actual Windows package registration passed.

The parent backlog remains open while this PR is reviewed. No release assets or notification state are changed by this PR.

@DRSDavidSoft
DRSDavidSoft marked this pull request as draft November 18, 2026 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant