Installer: Changed to quit Rainmeter with WM_CLOSE

This commit is contained in:
Birunthan Mohanathas 2012-04-10 20:35:23 +03:00
parent 43f726271d
commit 9dcaa2f891

View File

@ -636,9 +636,9 @@ Section
SetOutPath "$INSTDIR"
FindWindow $0 "RainmeterTrayClass"
FindWindow $0 "DummyRainWClass" "Rainmeter control window"
${If} $0 != "0"
Exec '"$INSTDIR\Rainmeter.exe" !Quit'
SendMessage $0 ${WM_CLOSE} 0 0
; Wait up to for up to 5 seconds for Rainmeter to close
StrCpy $1 "0"