Skip to content

Commit

Permalink
fix: one-click installer — Uninstall Confirm Dialog Option for One-cl…
Browse files Browse the repository at this point in the history
…ick Windows NSIS #618
  • Loading branch information
develar committed Aug 5, 2016
1 parent d70e04e commit b3c49cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 5 additions & 3 deletions templates/nsis/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ Function un.onInit
!insertmacro check64BitAndSetRegView

${IfNot} ${Silent}
MessageBox MB_OKCANCEL "Are you sure you want to uninstall ${PRODUCT_NAME}?" IDOK next
Quit
MessageBox MB_OKCANCEL "Are you sure you want to uninstall ${PRODUCT_NAME}?" IDOK +2
Quit

next:
!ifdef ONE_CLICK
SetSilent silent
!endif
${EndIf}

!insertmacro initMultiUser Un un.
Expand Down
1 change: 0 additions & 1 deletion templates/nsis/oneClick.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
FunctionEnd
!endif

SilentUnInstall silent
AutoCloseWindow true
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_UNPAGE_INSTFILES
Expand Down

0 comments on commit b3c49cb

Please sign in to comment.