mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-24 21:46:52 +01:00
Merge pull request #142 from tgstation/Cyberboss-patch-1
Prompts to kill running interfaces are now shown at the beginning of installation
This commit is contained in:
+15
-15
@@ -68,6 +68,21 @@ namespace TGInstallerWrapper
|
||||
string logfile = null;
|
||||
try
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
var res = PromptKillProcess("TGCommandLine");
|
||||
if (res == PKillType.Aborted)
|
||||
return;
|
||||
else if (res == PKillType.Killed)
|
||||
continue;
|
||||
res = PromptKillProcess("TGControlPanel");
|
||||
if (res == PKillType.Aborted)
|
||||
return;
|
||||
else if (res == PKillType.Killed)
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
var args = new List<string>();
|
||||
if (!pathIsDefault)
|
||||
args.Add(String.Format("INSTALLFOLDER=\"{0}\"", PathTextBox.Text));
|
||||
@@ -114,21 +129,6 @@ namespace TGInstallerWrapper
|
||||
}
|
||||
}
|
||||
|
||||
while (true)
|
||||
{
|
||||
var res = PromptKillProcess("TGCommandLine");
|
||||
if (res == PKillType.Aborted)
|
||||
return;
|
||||
else if (res == PKillType.Killed)
|
||||
continue;
|
||||
res = PromptKillProcess("TGControlPanel");
|
||||
if (res == PKillType.Aborted)
|
||||
return;
|
||||
else if (res == PKillType.Killed)
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
InstallCancelButton.Enabled = true;
|
||||
|
||||
if (ShowLogCheckbox.Checked)
|
||||
|
||||
Reference in New Issue
Block a user