mirror of https://github.com/2dust/v2rayN
增强程序更新成功率
parent
5357f504d8
commit
5b2a6b12af
|
@ -577,7 +577,7 @@ namespace v2rayN.Forms
|
|||
|
||||
private void menuRemoveDuplicateServer_Click(object sender, EventArgs e)
|
||||
{
|
||||
Utils.DedupServerList(config.vmess, out List<VmessItem> servers, config.keepOlderDedupl);
|
||||
Utils.DedupServerList(config.vmess, out List<VmessItem> servers, config.keepOlderDedupl);
|
||||
int oldCount = config.vmess.Count;
|
||||
int newCount = servers.Count;
|
||||
if (servers != null)
|
||||
|
@ -1226,7 +1226,7 @@ namespace v2rayN.Forms
|
|||
try
|
||||
{
|
||||
string fileName = Utils.GetPath(downloadHandle.DownloadFileName);
|
||||
Process process = Process.Start("v2rayUpgrade.exe", fileName);
|
||||
Process process = Process.Start("v2rayUpgrade.exe", "\"" + fileName + "\"");
|
||||
if (process.Id > 0)
|
||||
{
|
||||
menuExit_Click(null, null);
|
||||
|
|
|
@ -41,8 +41,9 @@ namespace v2rayUpgrade
|
|||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
showWarn("Failed to close v2rayN(关闭v2rayN失败)." + ex.StackTrace);
|
||||
return;
|
||||
// Access may be denied without admin right. The user may not be an administrator.
|
||||
showWarn("Failed to close v2rayN(关闭v2rayN失败).\n" +
|
||||
"Close it manually, or the upgrade may fail.(请手动关闭正在运行的v2rayN,否则可能升级失败。\n\n" + ex.StackTrace);
|
||||
}
|
||||
|
||||
try
|
||||
|
|
Loading…
Reference in New Issue