Skip to content

Commit b3c49cb

Browse files
committed
fix: one-click installer — Uninstall Confirm Dialog Option for One-click Windows NSIS #618
1 parent d70e04e commit b3c49cb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

templates/nsis/installer.nsi

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,12 @@ Function un.onInit
5252
!insertmacro check64BitAndSetRegView
5353

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

58-
next:
58+
!ifdef ONE_CLICK
59+
SetSilent silent
60+
!endif
5961
${EndIf}
6062

6163
!insertmacro initMultiUser Un un.

templates/nsis/oneClick.nsh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
FunctionEnd
1010
!endif
1111

12-
SilentUnInstall silent
1312
AutoCloseWindow true
1413
!insertmacro MUI_PAGE_INSTFILES
1514
!insertmacro MUI_UNPAGE_INSTFILES

0 commit comments

Comments
 (0)