Forum Discussion
Edijs_Perkums_MasterPackager
Oct 31, 2022Brass Contributor
Windows 11 context menu
I want to create a Windows 11 context menu for my Win32 app, but I don't want to write the dll that uses IExplorerCommand . Is it possible to add a context menu item with an icon using a sparse packa...
Edijs_Perkums_MasterPackager
Nov 02, 2022Brass Contributor
alexmarin89 Can you provide a specific example of which xml elements need to be used to get a context menu item with an icon?
alexmarin89
Nov 02, 2022Iron Contributor
Edijs_Perkums_MasterPackagerThe easiest example I can give if you want to use other tools such as VS or MSIX Packaging tool is to check this https://github.com/microsoft/AppModelSamples/tree/master/Samples/SparsePackages.
- Edijs_Perkums_MasterPackagerNov 03, 2022Brass ContributorI have seen that example and that is what I'm trying to avoid. I don't want to write a dll to have a context menu, for win32 apps I can create a registry HKEY_CLASSES_ROOT\.myextension and add the progid in the default value and add the verb under here - HKEY_CLASSES_ROOT\MyProgid\shell\MyVerb. And that is all I need to get a context menu item with an Icon. I am wondering if I can do the same with a sparse package so this context menu is shown on the new Windows 11 context menu, not the old one by clicking show more options. I hope this makes it more clear what I'm trying to achieve.