From 78f5ce692cafcb2546667b0a1459d968f602bd48 Mon Sep 17 00:00:00 2001 From: Alexander Date: Wed, 27 Nov 2019 15:02:05 +0200 Subject: [PATCH] Fixed bug when integrate with explorer context menu doesn't work on new systems --- Crypto Notepad/External Libraries/Methods.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Crypto Notepad/External Libraries/Methods.cs b/Crypto Notepad/External Libraries/Methods.cs index cc52438..294abc1 100644 --- a/Crypto Notepad/External Libraries/Methods.cs +++ b/Crypto Notepad/External Libraries/Methods.cs @@ -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", "");