Run `v2rayUpgrade.exe` in the same folder as `v2rayN.exe`

pull/860/head
Mozi 2020-06-06 12:09:04 +08:00
parent a799420d0f
commit 2615b72cee
1 changed files with 10 additions and 1 deletions

View File

@ -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);