DavidIzadaR
Posts: 3
Joined: Fri Jun 24, 2022 3:16 pm

Support for Context Menu

Tue Jul 19, 2022 5:50 pm

Our application currently implements a Shell Extension Context Menu by implementing the IContextMenu interface in a COM DLL.
On Windows 11, our context menu appears under "Show more options," and we want to return it to the top menu.
We started by implementing the new interface, IExplorerCommand, as Microsoft promised back compatibility up to Windows 7.

Later, Microsoft said that they added a manifest extension for keeping the "classic context menu" on Windows 11. It is something like:
<desktop9:Extension Category="windows.fileExplorerClassicContextMenuHandler">
<desktop9:FileExplorerClassicContextMenuHandler>
<desktop9:ExtensionHandler Type="Directory" Clsid="57fa2d12-d22d-490a-805a-5cb48e84f12a" />
...
It still requires creating a sparse package, signing, trusting, and registering it using the Package Manager API.

Advanced Installer 19.7 supports Windows 11 Context Menu, but only for handlers executing an external EXE.
I could be wrong, but I don't see any option for declaring a Context Menu class hosted in a DLL.
Is it possible at all?
Should we go the long way and generate a full sparse package?

Catalin
Posts: 6542
Joined: Wed Jun 13, 2018 7:49 am

Re: Support for Context Menu

Wed Jul 20, 2022 12:30 pm

Hello David,

From what I can see, my colleague Danut has answered you over the email.

If possible, please continue the thread there.

If there is anthing else I could help you with, please let me know and I will gladly assist.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”