Context menu regsitration

%3CLINGO-SUB%20id%3D%22lingo-sub-294629%22%20slang%3D%22en-US%22%3EContext%20menu%20regsitration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-294629%22%20slang%3D%22en-US%22%3E%3CP%3EDoes%20MSIX%20currently%20support%20context%20menu%20handler%20registration%3F%3C%2FP%3E%3CP%3ETried%20MSIX%20conversion%20of%207-zip%20package.%20The%20required%20registry%20entries%20are%20captured%2C%20but%20after%20installation%20of%20the%20MSIX%20package%2C%20the%20option%20does%20not%20appear.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-313281%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20Context%20menu%20regsitration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-313281%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20document%20referenced%20shows%20how%20to%20add%20shell%20menus%20(we%20sometimes%20call%20these%20shell%20integrations).%26nbsp%3B%20These%20integrations%20point%20to%20the%20application%20executable%20to%20be%20run..%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20does%20not%2C%20however%2C%20show%20how%20to%20add%20context%20menus%2C%20which%20points%20to%20a%20dll%20that%20is%20loaded%20by%20explorer.exe%20to%20determine%20if%20menus%20should%20be%20added%20(depending%20on%20the%20context)%20when%20the%20user%20right-clicks.%26nbsp%3B%20Context%20Menus%20are%20a%20subset%20of%20%22shell%20extensions%22.%26nbsp%3B%20It%20appears%20to%20me%20that%20%3CEM%3Eat%20this%20time%3C%2FEM%3E%20shell%20extensions%20are%20not%20supported%20in%20MSIX.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-295398%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20Context%20menu%20regsitration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-295398%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Mike%2C%20Thanks%20for%20the%20response.%20Just%20to%20confirm%2C%20the%20MSIX%20packaging%20tool%20will%20not%20be%20automatically%20capturing%20these%20entries%20and%20would%20need%20to%20be%20manually%20edited%20in%20the%20manifest%20file%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-294751%22%20slang%3D%22en-US%22%3ERE%3A%20Context%20menu%20regsitration%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-294751%22%20slang%3D%22en-US%22%3EYes%20-%20see%20here%20how%20to%20specify%20context%20menus%20in%20the%20app%20package%20manifest%20file%3A%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fuwp%2Fporting%2Fdesktop-to-uwp-extensions%23add%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fuwp%2Fporting%2Fdesktop-to-uwp-extensions%23add%3C%2FA%3E%3C%2FLINGO-BODY%3E
New Contributor

Does MSIX currently support context menu handler registration?

Tried MSIX conversion of 7-zip package. The required registry entries are captured, but after installation of the MSIX package, the option does not appear.

3 Replies
Yes - see here how to specify context menus in the app package manifest file: https://docs.microsoft.com/en-us/windows/uwp/porting/desktop-to-uwp-extensions#add

Hi Mike, Thanks for the response. Just to confirm, the MSIX packaging tool will not be automatically capturing these entries and would need to be manually edited in the manifest file

The document referenced shows how to add shell menus (we sometimes call these shell integrations).  These integrations point to the application executable to be run..

 

It does not, however, show how to add context menus, which points to a dll that is loaded by explorer.exe to determine if menus should be added (depending on the context) when the user right-clicks.  Context Menus are a subset of "shell extensions".  It appears to me that at this time shell extensions are not supported in MSIX.