Forum Discussion
Windows 11 context menu
Yes you can add context menus by using MSIX Sparse Packages. First, you need to set your MSIX to allow external content to reference content outside its package, in a specific location on disk. Next, the app must point to your Win32 executable and lastly enable the Unvirtualized Resources capability. Once you have done all that, install the sparse package from your MSI package and you should by on your way. A more in-depth article on this here.
PS: I work for the Advanced Installer team.
alexmarin89 Can you provide a specific example of which xml elements need to be used to get a context menu item with an icon?
- alexmarin89Nov 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 example here.
- 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.