[GH-ISSUE #188] [Question] How did you add to Explorer Context menu as user #185

Closed
opened 2026-02-25 21:32:49 +03:00 by kerem · 2 comments
Owner

Originally created by @blauertee on GitHub (Jan 21, 2025).
Original GitHub issue: https://github.com/clechasseur/pathcopycopy/issues/188

Disclaimer:
Hey there this is not an issue with this software, i'm just asking for help here because people on github are nicer than on most other forums and you have obviously solved the problem I'm chewing on. If there was a discussion Tab on this Repo I'd ask there, feel free to close this if you don't have time for answering such requests.

Question:
How did you manage add the widows Context Menu Items to the Regestry? I found serveral tutorials on this but none have worked for me so far. And when viewing the Registry this is not what pathcopycopy does. So what are you doing there? :)

Thank's a lot in advance!

Jakob

Originally created by @blauertee on GitHub (Jan 21, 2025). Original GitHub issue: https://github.com/clechasseur/pathcopycopy/issues/188 **Disclaimer:** Hey there this is not an issue with this software, i'm just asking for help here because people on github are nicer than on most other forums and you have obviously solved the problem I'm chewing on. If there was a discussion Tab on this Repo I'd ask there, feel free to close this if you don't have time for answering such requests. **Question:** How did you manage add the widows Context Menu Items to the Regestry? I found [serveral](https://mrlixm.github.io/blog/windows-explorer-context-menu/#editing-the-registry-advanced) tutorials on this but none have worked for me so far. And when viewing the Registry this is not what pathcopycopy does. So what are you doing there? :) Thank's a lot in advance! Jakob
kerem closed this issue 2026-02-25 21:32:49 +03:00
Author
Owner

@clechasseur commented on GitHub (Jan 23, 2025):

You know, I thought I had turned on discussions, but it looks like I didn't. I fixed that. Sorry for this :)

<!-- gh-comment-id:2608810482 --> @clechasseur commented on GitHub (Jan 23, 2025): You know, I thought I _had_ turned on discussions, but it looks like I didn't. I fixed that. Sorry for this :)
Author
Owner

@clechasseur commented on GitHub (Jan 23, 2025):

As for how: most of the tutorials I find these days mention how you can add items to the context menu via the registry, but Path Copy Copy uses a much older trick: using a COM object. You need to implement a COM object that supports the IContextMenu interface (and most like IShellExtInit), then register it in the proper place in the registry to it is loaded when contextual menu is displayed.

Please note that this method won't allow you to display items in the Windows 11 contextual menu - that one has a new implementation. If you go the COM route, your contextual menus will only be displayed in the extended contextual menu.

<!-- gh-comment-id:2608814993 --> @clechasseur commented on GitHub (Jan 23, 2025): As for how: most of the tutorials I find these days mention how you can add items to the context menu via the registry, but Path Copy Copy uses a much older trick: using a COM object. You need to implement a COM object that supports the [`IContextMenu` interface](https://learn.microsoft.com/en-us/windows/win32/api/shobjidl_core/nn-shobjidl_core-icontextmenu) (and most like [`IShellExtInit`](https://learn.microsoft.com/en-us/windows/win32/api/shobjidl_core/nn-shobjidl_core-ishellextinit)), then register it in the proper place in the registry to it is loaded when contextual menu is displayed. Please note that this method won't allow you to display items in the Windows 11 contextual menu - that one has a new implementation. If you go the COM route, your contextual menus will only be displayed in the extended contextual menu.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/pathcopycopy#185
No description provided.