Checking if "shell" section is missing

This commit is contained in:
Alexander 2018-12-17 16:42:08 +02:00
parent e27c9e0d99
commit 92b7d5fede

View file

@ -153,7 +153,9 @@ public static void MenuIntegrate(string action)
{
if (action == "enable")
{
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Classes\*\shell\", true);
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Software\Classes\*\", true);
key = key.CreateSubKey("shell");
key.CreateSubKey("Crypto Notepad").SetValue("icon", appExePath);
key.CreateSubKey("Crypto Notepad").SetValue("SubCommands", "");
@ -177,7 +179,6 @@ public static void MenuIntegrate(string action)
{
}
}
private void panel1_Click_1(object sender, EventArgs e)