From 511cc7ef8f6dede9376cc71c6acb0a382c73f709 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Tue, 27 Sep 2022 22:06:35 -0400 Subject: [PATCH] Don't pause after elevating process --- tools/Tgstation.Server.Migrator/Program.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/Tgstation.Server.Migrator/Program.cs b/tools/Tgstation.Server.Migrator/Program.cs index 42a57f40f1..2c3e154fee 100644 --- a/tools/Tgstation.Server.Migrator/Program.cs +++ b/tools/Tgstation.Server.Migrator/Program.cs @@ -83,7 +83,7 @@ try elevatedProcess.StartInfo.Verb = "runas"; elevatedProcess.Start(); - ExitPause(0); + return; } Console.WriteLine("Administrative privileges confirmed."); @@ -93,6 +93,8 @@ try const string PathToCommsBinary = #if DEBUG "../../../../../Tgstation.Server.Migrator.Comms/bin/Debug/net472/win-x86/" + +#else + "Comms/" + #endif "Tgstation.Server.Migrator.Comms.exe";