From 35bd388d25cfa19ef2f1ef809f2a382ff8b47309 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20J=C3=BCrgens?= Date: Thu, 5 May 2022 17:36:49 +0200 Subject: [PATCH] Ask user before closing LibreWolf in installer --- assets/setup.nsi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/assets/setup.nsi b/assets/setup.nsi index ab701fa..d0775ba 100644 --- a/assets/setup.nsi +++ b/assets/setup.nsi @@ -43,7 +43,13 @@ Section SetErrorlevel 2 Abort - DetailPrint "${APPNAME} is still running. Closing it gracefully..." + DetailPrint "${APPNAME} is still running" + MessageBox MB_OKCANCEL "LibreWolf is still running and has to be closed for the setup to continue." IDOK continue IDCANCEL break +break: + SetErrorlevel 1 + Abort +continue: + DetailPrint "Closing ${APPNAME} gracefully..." nsProcess::_CloseProcess "${EXECUTABLE}" Pop $R0 Sleep 2000