Installer: Tweaked Rainmeter closing process

This commit is contained in:
Birunthan Mohanathas 2012-05-20 19:54:20 +03:00
parent 9fb14b032c
commit 59713dd9b3

View File

@ -637,7 +637,10 @@ Section
; Close Rainmeter (and wait up to five seconds) ; Close Rainmeter (and wait up to five seconds)
${ForEach} $0 10 0 - 1 ${ForEach} $0 10 0 - 1
FindWindow $1 "DummyRainWClass" "Rainmeter control window" FindWindow $1 "DummyRainWClass" "Rainmeter control window"
ClearErrors
Delete "$INSTDIR\Rainmeter.exe"
${If} $1 == 0 ${If} $1 == 0
${AndIfNot} ${Errors}
${Break} ${Break}
${EndIf} ${EndIf}
@ -868,7 +871,10 @@ Section Uninstall
; Close Rainmeter (and wait up to five seconds) ; Close Rainmeter (and wait up to five seconds)
${ForEach} $0 10 0 - 1 ${ForEach} $0 10 0 - 1
FindWindow $1 "DummyRainWClass" "Rainmeter control window" FindWindow $1 "DummyRainWClass" "Rainmeter control window"
ClearErrors
Delete "$INSTDIR\Rainmeter.exe"
${If} $1 == 0 ${If} $1 == 0
${AndIfNot} ${Errors}
${Break} ${Break}
${EndIf} ${EndIf}