Fixed bug when integrate with explorer context menu doesn't work on new systems

This commit is contained in:
Alexander 2019-11-27 15:02:05 +02:00
parent 674920964c
commit 78f5ce692c

View file

@ -133,7 +133,8 @@ public static void MenuIntegrate(string action)
{
if (action == "enable")
{
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Classes\*\", true);
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Classes\", true);
key = key.CreateSubKey("*");
key = key.CreateSubKey("shell");
key.CreateSubKey("Crypto Notepad").SetValue("icon", appExePath);
key.CreateSubKey("Crypto Notepad").SetValue("SubCommands", "");