Skip to content

Commit

Permalink
v1.0.5.0 installer script.
Browse files Browse the repository at this point in the history
- Uninstaller will now promts user weather to close lively if running.
  • Loading branch information
rocksdanister committed Sep 6, 2020
1 parent 0d58ca5 commit a647198
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/installer/Script.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; https://jrsoftware.org/isinfo.php

#define MyAppName "Lively Wallpaper"
#define MyAppVersion "1.0.1.0"
#define MyAppVersion "1.0.5.0"
#define MyAppPublisher "rocksdanister"
#define MyAppURL "https://github.com/rocksdanister/lively"
#define MyAppExeName "livelywpf.exe"
Expand Down Expand Up @@ -211,3 +211,18 @@ function ShouldInstallWallpapers: Boolean;
begin
Result := not isAlreadyInstalled;
end;
//////////////////////////////////////////////////////////////////////
function InitializeUninstall(): Boolean;
var
ErrorCode: Integer;
begin
if CheckForMutexes('LIVELY:DESKTOPWALLPAPERSYSTEM') and
(MsgBox('Application is running, do you want to close it?',
mbConfirmation, MB_OKCANCEL) = IDOK) then
begin
ShellExec('open','taskkill.exe','/f /im {#MyAppExeName}','',SW_HIDE,ewWaitUntilTerminated,ErrorCode);
end;
Result := True;
end;

0 comments on commit a647198

Please sign in to comment.