From 59713dd9b3b4256db0b7ab546199a6992acc8686 Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Sun, 20 May 2012 19:54:20 +0300 Subject: [PATCH] Installer: Tweaked Rainmeter closing process --- Build/Installer/Installer.nsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Build/Installer/Installer.nsi b/Build/Installer/Installer.nsi index cebb3e60..bdd0106b 100644 --- a/Build/Installer/Installer.nsi +++ b/Build/Installer/Installer.nsi @@ -637,7 +637,10 @@ Section ; Close Rainmeter (and wait up to five seconds) ${ForEach} $0 10 0 - 1 FindWindow $1 "DummyRainWClass" "Rainmeter control window" + ClearErrors + Delete "$INSTDIR\Rainmeter.exe" ${If} $1 == 0 + ${AndIfNot} ${Errors} ${Break} ${EndIf} @@ -868,7 +871,10 @@ Section Uninstall ; Close Rainmeter (and wait up to five seconds) ${ForEach} $0 10 0 - 1 FindWindow $1 "DummyRainWClass" "Rainmeter control window" + ClearErrors + Delete "$INSTDIR\Rainmeter.exe" ${If} $1 == 0 + ${AndIfNot} ${Errors} ${Break} ${EndIf}