Sample ExplorerCommandVerb does not work on Windows 11
pjaholkowski opened this issue · 3 comments
Sample https://github.com/microsoft/Windows-classic-samples/tree/main/Samples/Win7Samples/winui/shell/appshellintegration/ExplorerCommandVerb does not work on Windows 11. regsvr32 successfully registers dll but the dll is not loaded when *.txt file is clicked with right mouse button (therefore verb is not shown in shell context menu).
It is probably only showing up after you click "show more options". To extend the primary context menu in Windows 11, you must have app identity. You can check this resource and this very good how-to video. I hope it helps.
https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/grant-identity-to-nonpackaged-apps
https://www.youtube.com/watch?v=LfBQm-FY-2I
@ddomingos-daitan is correct. Windows 11 moved most verbs to the "show more options" menu.
In my testing (on Win11 23H2) this doesn't work. The menu items don't show up on the main menu or in the "Show more options" menu.