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

@@ -324,20 +324,21 @@ namespace Jackett.Common.Services
startInfo.Arguments += " --StartTray";
}
if (isWindows)
{
lockService.Signal();
logger.Info("Signal sent to lock service");
Thread.Sleep(2000);
}
logger.Info($"Starting updater: {startInfo.FileName} {startInfo.Arguments}");
var procInfo = Process.Start(startInfo);
logger.Info($"Updater started process id: {procInfo.Id}");
if (!NoRestart)
{
if (isWindows)
{
logger.Info("Signal sent to lock service");
lockService.Signal();
Thread.Sleep(2000);
}
logger.Info("Exiting Jackett..");
//TODO: Remove once off Owin
if (EnvironmentUtil.IsRunningLegacyOwin)
{