ShellExtension Context Menu issue with "additional settings"

%3CLINGO-SUB%20id%3D%22lingo-sub-2174665%22%20slang%3D%22en-US%22%3EShellExtension%20Context%20Menu%20issue%20with%20%22additional%20settings%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2174665%22%20slang%3D%22en-US%22%3E%3CP%3EWhen%20a%20programmer%20implements%20a%20shell%20extension%20context%20menu%2C%20they%20may%20want%20to%20have%20additional%20registry%20based%20settings%20for%20the%20extension%20to%20use.%26nbsp%3B%20A%20logical%20place%20to%20store%20those%20settings%20is%20with%20the%20COM%20CLISD.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENotepad%2B%2B%20is%20one%20such%20program.%20Even%20if%20we%20change%20the%20FTA%20from%20the%20wildcard%20to%20a%20regular%20extension%20type%2C%20such%20as%20.xyx%2C%20the%20shell%20extension%20fails%20to%20work%20when%20deployed%20as%20an%20MSIX%20package%2C%20because%20of%20this%20missing%20information.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EThis%20post%20documents%20how%20this%20issue%20manifests%20itself%20on%20this%20application%3C%2FSTRONG%3E.%26nbsp%3B%20Ultimately%2C%20I%20think%20that%20this%20shell%20extension%2C%20and%20probably%20many%20more%2C%20need%20access%20to%20the%20application%20hive%20to%20function%20properly.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAttachment%201%20(REg.PNG)%26nbsp%3B%20is%20a%20screenshot%20of%20the%20original%20registration%20by%20the%20installer.%26nbsp%3B%20I%20have%20circled%20the%20additional%20registry%20information%20that%20the%20dll%20requires.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAttachment%202%20(manifest.PNG)%20is%20a%20screenshot%20of%20the%20relevant%20portion%20of%20the%20package%20manifest%2C%20after%20changing%20the%20filetype%20to%20avoid%20potential%20issues%20with%20needing%20to%20use%20desktop5.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAttachment%203%20is%20the%20registry%20entries%20added%20to%20the%20system%20after%20installing%20this%20package.%26nbsp%3B%20As%20there%20is%20no%20ability%20to%20bring%20along%20the%20additional%20settings%2C%20the%20extension%20fails%20to%20work%20outside%20of%20the%20container.%26nbsp%3B%20Although%20interestingly%2C%20if%20you%20try%20a%20right-click%20from%20a%20file-open%20dialog%20inside%20the%20application%20(that%20is%20running%20inside%20the%20container)%20the%20shell%20extension%20does%20work%20as%20long%20as%20the%20entries%20are%20kept%20in%20the%20application%20registry%20hive%20in%20the%20container.%3C%2FP%3E%0A%3CDIV%20id%3D%22tinyMceEditorTIMOTHY%20MANGAN_0%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20id%3D%22tinyMceEditorTIMOTHY%20MANGAN_1%22%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
MVP

When a programmer implements a shell extension context menu, they may want to have additional registry based settings for the extension to use.  A logical place to store those settings is with the COM CLISD. 

 

Notepad++ is one such program. Even if we change the FTA from the wildcard to a regular extension type, such as .xyx, the shell extension fails to work when deployed as an MSIX package, because of this missing information. 

 

This post documents how this issue manifests itself on this application.  Ultimately, I think that this shell extension, and probably many more, need access to the application hive to function properly.

 

Attachment 1 (REg.PNG)  is a screenshot of the original registration by the installer.  I have circled the additional registry information that the dll requires.

 

Attachment 2 (manifest.PNG) is a screenshot of the relevant portion of the package manifest, after changing the filetype to avoid potential issues with needing to use desktop5.

 

Attachment 3 is the registry entries added to the system after installing this package.  As there is no ability to bring along the additional settings, the extension fails to work outside of the container.  Although interestingly, if you try a right-click from a file-open dialog inside the application (that is running inside the container) the shell extension does work as long as the entries are kept in the application registry hive in the container.

 
 

 

 

0 Replies