Skip to content

Commit

Permalink
修正自更新安装位置错误
Browse files Browse the repository at this point in the history
  • Loading branch information
MFunction96 committed Aug 26, 2024
1 parent 4a4c504 commit 0f62cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/KorabliChsMod.Core/UpdateHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ await networkEngine.DownloadAsync(new HttpRequestMessage(HttpMethod.Get, downloa
{
FileName = @"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe",
Arguments =
$"-ExecutionPolicy Unrestricted -Command \"Stop-Process -Id {Environment.ProcessId} -Force ; $p = Start-Process -FilePath \'{exeFile.FullPath}\' -ArgumentList \'/S /D={Path.GetDirectoryName(Environment.CurrentDirectory)}\' -PassThru ; $p.WaitForExit() ; Start-Process -FilePath \'{Environment.CurrentDirectory}\\KorabliChsMod.exe\'\"",
$"-ExecutionPolicy Unrestricted -Command \"Stop-Process -Id {Environment.ProcessId} -Force ; $p = Start-Process -FilePath \'{exeFile.FullPath}\' -ArgumentList \'/S /D={Environment.CurrentDirectory}\' -PassThru ; $p.WaitForExit() ; Start-Process -FilePath \'{Environment.CurrentDirectory}\\KorabliChsMod.exe\'\"",
WorkingDirectory = Environment.CurrentDirectory,
CreateNoWindow = true
};
Expand Down

0 comments on commit 0f62cee

Please sign in to comment.