Skip to content

Commit

Permalink
add SetOverwrite "off" if no selected
Browse files Browse the repository at this point in the history
  • Loading branch information
huche6 committed Dec 14, 2023
1 parent fc4142e commit c2832a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion constructor/nsis/main.nsi.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit c2832a9

Please sign in to comment.