mirror of https://github.com/2dust/v2rayN
clear auto run
parent
7f5bb86127
commit
3275454bd6
|
@ -594,6 +594,12 @@ namespace v2rayN
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
//clear
|
||||||
|
if (!RegReadValue(autoRunRegPath, "v2rayNAutoRun", "").IsNullOrEmpty())
|
||||||
|
{
|
||||||
|
RegWriteValue(autoRunRegPath, "v2rayNAutoRun", "");
|
||||||
|
}
|
||||||
|
|
||||||
string value = RegReadValue(autoRunRegPath, autoRunName, "");
|
string value = RegReadValue(autoRunRegPath, autoRunName, "");
|
||||||
string exePath = GetExePath();
|
string exePath = GetExePath();
|
||||||
if (value?.Equals(exePath) == true || value?.Equals($"\"{exePath}\"") == true)
|
if (value?.Equals(exePath) == true || value?.Equals($"\"{exePath}\"") == true)
|
||||||
|
|
Loading…
Reference in New Issue