Skip to content

Commit

Permalink
innosetup again... Part VI ignoreversion
Browse files Browse the repository at this point in the history
  • Loading branch information
Henri Wahl committed Jan 24, 2020
1 parent 02b72ce commit e8bc52e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions build/windows/nagstamon.iss
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit e8bc52e

Please sign in to comment.