diff --git a/build/windows/nagstamon.iss b/build/windows/nagstamon.iss index ba16ace14..d3b64be8a 100644 --- a/build/windows/nagstamon.iss +++ b/build/windows/nagstamon.iss @@ -39,5 +39,5 @@ procedure KillRunningNagstamon(); var ReturnCode: Integer; begin - Exec(ExpandConstant('taskkill.exe'), '/f /im nagstamon.exe', '', SW_HIDE, ewWaitUntilTerminated, ReturnCode); + Exec(ExpandConstant('taskkill.exe'), '/f /t /im nagstamon.exe', '', SW_HIDE, ewWaitUntilIdle, ReturnCode); end; \ No newline at end of file