Browse Source

create proper key if different key exists on registry

Signed-off-by: ahmadali shafiee <mail@ahmadalli.net>
tags/4.3.2.0
ahmadali shafiee 4 years ago
parent
commit
8b6088d4a1
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      shadowsocks-csharp/Controller/System/AutoStartup.cs

+ 2
- 0
shadowsocks-csharp/Controller/System/AutoStartup.cs View File

@@ -84,6 +84,8 @@ namespace Shadowsocks.Controller
if (string.Equals(runKey.GetValue(valueName).ToString(), Program.ExecutablePath, StringComparison.InvariantCultureIgnoreCase))
{
runKey.DeleteValue(valueName);
runKey.SetValue(Key, Program.ExecutablePath);
check = true;
}
}
return check;


Loading…
Cancel
Save