From e8bc52e15f7e2a9b861b869a377f1b6f74668520 Mon Sep 17 00:00:00 2001 From: Henri Wahl Date: Fri, 24 Jan 2020 16:12:12 +0100 Subject: [PATCH] innosetup again... Part VI ignoreversion --- build/windows/nagstamon.iss | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/build/windows/nagstamon.iss b/build/windows/nagstamon.iss index d3b64be8a..02c1c97b5 100644 --- a/build/windows/nagstamon.iss +++ b/build/windows/nagstamon.iss @@ -27,17 +27,15 @@ CloseApplications=no Name: {group}\Nagstamon; Filename: {app}\nagstamon.exe; WorkingDir: {app}; IconFilename: {app}\resources\nagstamon.ico; IconIndex: 0 Name: {commonstartup}\Nagstamon; Filename: {app}\nagstamon.exe; WorkingDir: {app}; IconFilename: {app}\resources\nagstamon.ico; IconIndex: 0 [Files] -Source: "*"; DestDir: {app}; Flags: recursesubdirs createallsubdirs; BeforeInstall: KillRunningNagstamon() +Source: "*"; DestDir: {app}; Flags: recursesubdirs createallsubdirs ignoreversion; BeforeInstall: KillRunningNagstamon() [Tasks] Name: RunAfterInstall; Description: Run Nagstamon after installation [Run] Filename: {app}\nagstamon.exe; Flags: shellexec skipifsilent nowait; Tasks: RunAfterInstall -[InstallDelete] -Name: "{app}\*Qt*"; Type: filesandordirs [Code] procedure KillRunningNagstamon(); var ReturnCode: Integer; begin - Exec(ExpandConstant('taskkill.exe'), '/f /t /im nagstamon.exe', '', SW_HIDE, ewWaitUntilIdle, ReturnCode); + Exec(ExpandConstant('taskkill.exe'), '/f /t /im nagstamon.exe', '', SW_HIDE, ewWaitUntilTerminated, ReturnCode); end; \ No newline at end of file