mirror of
				https://github.com/chibicitiberiu/rainmeter-studio.git
				synced 2024-02-24 04:33:31 +00:00 
			
		
		
		
	Installer: Tweaked Rainmeter closing process
This commit is contained in:
		@@ -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}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user