Also wait for I2P to finish exiting in uninstaller function

This commit is contained in:
idk
2023-01-17 22:41:37 +00:00
parent c4980a61f0
commit 00098cbf53

View File

@@ -224,12 +224,15 @@ SectionEnd
# uninstaller section start # uninstaller section start
Section "uninstall" Section "uninstall"
# Don't try to uninstall until the router is fully shut down. # Don't try to uninstall until the router is fully shut down.
${If} ${Silent} ${FindProcess} "I2P.exe" $0
${If} $0 <> 0
MessageBox MB_OK "I2P is still running, uninstaller is paused. Uninstaller will continue after I2P has shut down."
${Do} ${Do}
${FindProcess} "I2P.exe" $0 ${FindProcess} "I2P.exe" $0
Sleep 500 Sleep 500
${LoopWhile} $0 <> 0 ${LoopWhile} $0 <> 0
${EndIf} ${EndIf}
# Uninstall the launcher scripts # Uninstall the launcher scripts
rmDir /r "$INSTDIR\app" rmDir /r "$INSTDIR\app"
rmDir /r "$INSTDIR\config" rmDir /r "$INSTDIR\config"