Update installer so that it kills Jackett when uninstalling

This commit is contained in:
flightlevel
2018-06-30 22:49:11 +10:00
parent 44d14dc19c
commit 42728e2694
3 changed files with 22 additions and 13 deletions

View File

@@ -306,7 +306,15 @@ namespace Jackett.Updater
UseShellExecute = true
};
if (!isWindows)
if (isWindows)
{
//User didn't initiate the update from Windows service and wasn't running Jackett via the tray, must have started from the console
startInfo.Arguments = $"/K {startInfo.FileName} {startInfo.Arguments}";
startInfo.FileName = "cmd.exe";
startInfo.CreateNoWindow = false;
startInfo.WindowStyle = ProcessWindowStyle.Normal;
}
else
{
startInfo.Arguments = startInfo.FileName + " " + startInfo.Arguments;
startInfo.FileName = "mono";