Forum Discussion
Notepad++ 8.5.7 and "ExplorerCommandHandler" used to register the Context Menu
A company complained to me about Notepad++ version 8.5.7 and packaging it into MSIX. It seems that the vendor changed how the native install registers their context menu. Rather than registering under a ShellEx key, it uses a Shell key and a registry value named "ExplorerCommandHandler" that points to the COM InprocServer handler.
I have never seen this done before and documentation on it is hard to find, but the native install works flawlessly. Meanwhile the MMPT ignores it because it is a shell verb without a command subkey. This case should probably be handled by the MMPT.
For those reading this, TMEditX 3.5 also does not detect this situation, but it is something I'll put on the list for later this fall.
- TomPaul678Copper ContributorI just came across this problem with appv 5.1. Updated the notepad version and the context menu is gone.
- Roger_WernliCopper Contributor
Here also context menu issues with App-V 5.1.
Notepad++ 7.8.5 works fine
Notepad++ 8.5.8 doesn't work:
Does someone know if there is a way to resolve it?
- When repackaging for App-V, the only solution right now is as follows:
After installing/configuring the app, use the registry to modify the SHELL file association under "Classes\*" (there might be a ProgID involved, so if so look there -- I am going from memory here!)
Under the shell entry you'll find a value name of "ExplorerCommandHandler". You can remove everything under the "Shell" key, and then under that add a traditional Shell Integration (since the menu provided by the shell extension is the same every time), which is a key "Open" containing a key "Command" with a default value of the path to the Notepad++ exe file with "%1" as an argument.
See https://www.tmurgent.com/TmBlog/?p=3643 for more explanation.