mirror of
https://github.com/Crypto-Notepad/Crypto-Notepad.git
synced 2026-03-11 08:55:25 +00:00
Checking if "shell" section is missing
This commit is contained in:
parent
e27c9e0d99
commit
92b7d5fede
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue