Fix VRCX auto updater

This commit is contained in:
Natsumi
2024-06-18 22:17:21 +12:00
parent bfe6d9b3fb
commit 73a9803abd
3 changed files with 22 additions and 13 deletions
+11 -5
View File
@@ -202,11 +202,17 @@ namespace VRCX
/// </summary>
public void RestartApplication()
{
var VRCXProcess = new Process();
VRCXProcess.StartInfo.FileName = Path.Combine(Program.BaseDirectory, "VRCX.exe");
VRCXProcess.StartInfo.UseShellExecute = false;
VRCXProcess.StartInfo.Arguments = "/Upgrade";
VRCXProcess.Start();
var vrcxProcess = new Process
{
StartInfo = new ProcessStartInfo
{
FileName = Path.Combine(Program.BaseDirectory, "VRCX.exe"),
Arguments = "/Upgrade",
UseShellExecute = true,
WorkingDirectory = Program.BaseDirectory
}
};
vrcxProcess.Start();
Environment.Exit(0);
}