Browse Source

Merge pull request #860 from pzhlkj6612/master

在 v2rayN.exe 所在的文件夹运行 v2rayUpgrade.exe
pull/909/head
2dust 4 years ago committed by GitHub
parent
commit
4a6b8968d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 11
      v2rayN/v2rayN/Forms/MainForm.cs

11
v2rayN/v2rayN/Forms/MainForm.cs

@ -1298,7 +1298,16 @@ namespace v2rayN.Forms
try
{
string fileName = Utils.GetPath(downloadHandle.DownloadFileName);
Process process = Process.Start("v2rayUpgrade.exe", "\"" + fileName + "\"");
Process process = new Process
{
StartInfo = new ProcessStartInfo
{
FileName = "v2rayUpgrade.exe",
Arguments = "\"" + fileName + "\"",
WorkingDirectory = Utils.StartupPath()
}
};
process.Start();
if (process.Id > 0)
{
menuExit_Click(null, null);

Loading…
Cancel
Save