mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-02 04:56:06 +02:00
Fix VRCX auto updater
This commit is contained in:
+11
-5
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user