From c2832a95576b22a669db75ec75123354f0c9ec44 Mon Sep 17 00:00:00 2001 From: Hugo Chesneau Date: Thu, 14 Dec 2023 14:44:26 +0100 Subject: [PATCH] add SetOverwrite "off" if no selected --- constructor/nsis/main.nsi.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/constructor/nsis/main.nsi.tmpl b/constructor/nsis/main.nsi.tmpl index d76ac611e..3f7a8fbe9 100644 --- a/constructor/nsis/main.nsi.tmpl +++ b/constructor/nsis/main.nsi.tmpl @@ -847,11 +847,12 @@ Function OnDirectoryLeave DetailPrint "::error:: Directory '$INSTDIR' is not empty." MessageBox MB_YESNO \ "Directory '$INSTDIR' is not empty,$\n\ - do you want to upgrade the installation ?" \ + do you want to update the installation ?" \ /SD IDYES \ IDYES confirmed_yes IDNO confirmed_no confirmed_no: MessageBox MB_OK|MB_ICONSTOP "Choose another directory." /SD IDOK + SetOverwrite "off" Abort confirmed_yes: SetOverwrite "ifdiff"