Forum > Windows

[Solved] How to add content to windows right click menu?

<< < (2/2)

lainz:
Remember that from Windows 11 these menu are by default hidden. You need to do other way for Windows 11.

Thaddy:
Correct. You need more than a few registry keys.

loaded:
Thank you very much Remy Lebeau and lainz for your answer suggestions.


--- Quote from: Remy Lebeau on July 19, 2022, 08:10:00 pm ---You don't actually need to write a Shell Extension to accomplish this, unless you need to do some really advanced stuff (dynamic menus, owner-drawn menus, etc).   
--- End quote ---
Yes, that's right, I just wanted to process a simple file extension.


--- Quote from: lainz on July 19, 2022, 11:07:04 pm ---Remember that from Windows 11 these menu are by default hidden. You need to do other way for Windows 11.

--- End quote ---
Yes, the classic behavior of windows  ;D

Remy Lebeau:

--- Quote from: Thaddy on July 19, 2022, 09:04:18 pm ---
--- Quote from: Remy Lebeau on July 19, 2022, 08:10:00 pm ---https://docs.microsoft.com/en-us/windows/win32/shell/context-menu

--- End quote ---
But that will give you an appearance and a no show.

--- End quote ---

I don't understand what you are saying.  But in any case, using just Shell registry keys, you can still make items for the right-click context menu. The items just may take more steps to reach in the menu (ie, using the "Show more options" item, or Shift-F10, etc), but the registry items are still accessible.


--- Quote from: lainz on July 19, 2022, 11:07:04 pm ---Remember that from Windows 11 these menu are by default hidden. You need to do other way for Windows 11.

--- End quote ---

According to references I saw, Windows 11 wants us to customize the context menu by implementing IExplorerCommand w/ an app identity (implementing IContextMenu as @Thaddy suggested is just as old as using Registry keys), or by using a Sparse manifest.  That is quite a bit more work just for simple menu items.

loaded:
This is how I solved my problem indirectly though not directly.
https://wiki.freepascal.org/FileAssociation/fr

Navigation

[0] Message Index

[*] Previous page

Go to full version