Skip to content

Instantly share code, notes, and snippets.

@ChuckMichael
Last active October 8, 2023 23:56
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ChuckMichael/8ea2c2dcdc93f8384839f2e2890a329e to your computer and use it in GitHub Desktop.
Save ChuckMichael/8ea2c2dcdc93f8384839f2e2890a329e to your computer and use it in GitHub Desktop.
***/!\Not needed starting from Notepad++ v8.5.1/!\*** It adds "Edit with Notepad++" option to new context menu under Windows 11. Thanks to @AveYo!
Windows Registry Editor Version 5.00
; Edit with Notepad++ in Windows 11 contextmenu - by AveYo (https://gist.github.com/AveYo)
[-HKEY_CURRENT_USER\Software\Classes\*\shell\extract]
[HKEY_CURRENT_USER\Software\Classes\*\shell\extract]
"MuiVerb"="Edit with &Notepad++"
"Icon"="C:\\Program Files\\Notepad++\\notepad++.exe,0"
"MultiSelectModel"="Player"
"NeverDefault"=""
"AppliesTo"="NOT .zip"
[HKEY_CURRENT_USER\Software\Classes\*\shell\extract\command]
@="\"C:\\Program Files\\Notepad++\\notepad++.exe\" \"%L\""
[-HKEY_CURRENT_USER\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\ANotepad++64]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shellex\ContextMenuHandlers\ANotepad++64]
@Dhyfer1
Copy link

Dhyfer1 commented Aug 4, 2022

@ChuckMichael It really works? I haven't tried it yet and I can even tell you that I'm a bit suspicious, because before knowing your gist I had tried this file (also from @AveYo) and it doesn't work.

@ChuckMichael
Copy link
Author

Hi!
Yes, it really works!
Zrzut ekranu 2022-08-04 161622

@Dhyfer1
Copy link

Dhyfer1 commented Aug 6, 2022

Ok. Could you try with the file 7-Zip_Windows11.reg and check if it works for you? In my case it didn't work

@ChuckMichael
Copy link
Author

@Dhyfer1 It adds context option to older shell menu. I don't know if that was the intention.
old

@Dhyfer1
Copy link

Dhyfer1 commented Aug 7, 2022

Hmm, I see. I thought the archive created 7zip entries for the new context menu but it does not.

Ok, thanks for replying. 👍

@AveYo
Copy link

AveYo commented Aug 7, 2022

And those show up just fine in 11 context menu as intended (obviously minus the icon because reasons).
Screenshot 2022-08-08 012016
Screenshot 2022-08-08 011846

Only needs 7-zip installed in default folder C:\Program Files\7-Zip

@Dhyfer1
Copy link

Dhyfer1 commented Aug 7, 2022

@AveYo OK. Now I see it clear. About the 7zip icon you used a wrong image. "\shell\ConnectNetworkDrive" was what you used on line 6 and that's why that icon appears in the context menu, it would have been better to use \shell\windowscompressedfileextract but I don't know where you got the icons either. Can you tell me where you got the icons from?

And about this Notepad++ gist, why doesn't it appear with the others in your gist repository? I don't see it in your list

@AveYo
Copy link

AveYo commented Aug 7, 2022

The icon is automatic, you can't change it. On the legacy menu it shows the designated 7-zip one.
These are hijacked entries, meant as an example on how to add your own context menu entries without creating a freaking store app.
extract verb is more useful for something else like the Notepad++ entry here. I originally shared it on mdl. Thanks to ChuckMichael it's on github as well, I see no issue with that.

@Dhyfer1
Copy link

Dhyfer1 commented Aug 8, 2022

@AveYo Well, I only was just curious to know where Windows 11 stores the icons used in the new context menu. 🤔

@AveYo
Copy link

AveYo commented Aug 8, 2022

C:\Windows\SystemApps\MicrosoftWindows.Client.Core_cw5n1h2txyewy\FileExplorerExtensions\Assets\images\

@Dhyfer1
Copy link

Dhyfer1 commented Aug 8, 2022

Oh, thank you very much. I really needed that information, now I will be able to use some icons I need. Thanks again :)

@nosmall
Copy link

nosmall commented Sep 29, 2022

It works, thanks.

@ten2120
Copy link

ten2120 commented Sep 30, 2022

C:\Windows\SystemApps\MicrosoftWindows.Client.Core_cw5n1h2txyewy\FileExplorerExtensions\Assets\images\

Hi,
Thanks for the Reg key. I just want to know if you found a solution for the icon.
There is a post on 11F about the assets that might be helpful:
https://www.elevenforum.com/t/win-11-ui-icon-font.3722/#post-170147

As I realized, MS use "Segoe Fluent Icon" and "Segoe MDL2 Assets" fonts for some part of Windows UI.

@ten2120
Copy link

ten2120 commented Sep 30, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment