增强程序更新成功率

pull/567/head
YFdyh000 2020-03-20 01:22:26 +08:00
parent 5357f504d8
commit 5b2a6b12af
2 changed files with 5 additions and 4 deletions

View File

@ -1226,7 +1226,7 @@ namespace v2rayN.Forms
try try
{ {
string fileName = Utils.GetPath(downloadHandle.DownloadFileName); string fileName = Utils.GetPath(downloadHandle.DownloadFileName);
Process process = Process.Start("v2rayUpgrade.exe", fileName); Process process = Process.Start("v2rayUpgrade.exe", "\"" + fileName + "\"");
if (process.Id > 0) if (process.Id > 0)
{ {
menuExit_Click(null, null); menuExit_Click(null, null);

View File

@ -41,8 +41,9 @@ namespace v2rayUpgrade
} }
catch (Exception ex) catch (Exception ex)
{ {
showWarn("Failed to close v2rayN(关闭v2rayN失败)." + ex.StackTrace); // Access may be denied without admin right. The user may not be an administrator.
return; showWarn("Failed to close v2rayN(关闭v2rayN失败).\n" +
"Close it manually, or the upgrade may fail.(请手动关闭正在运行的v2rayN否则可能升级失败。\n\n" + ex.StackTrace);
} }
try try