Skip to content

Commit e99047d

Browse files
committed
feat: Uninstall Confirm Dialog Option for One-click Windows NSIS
Closes #618
1 parent e6ce209 commit e99047d

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ install:
3232
- nvm use --delete-prefix $NODE_VERSION
3333
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$NODE_VERSION" == "4" ]]; then npm install npm -g ; fi
3434
- npm install
35+
- npm install @develar/semantic-release
3536
- npm prune
3637
- (cd test/fixtures/app-executable-deps/app && npm install && npm prune)
3738

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
]
106106
},
107107
"devDependencies": {
108-
"@develar/semantic-release": "^6.3.4",
108+
"@develar/semantic-release": "^6.3.5",
109109
"@types/debug": "0.0.28",
110110
"@types/mime": "0.0.28",
111111
"@types/progress": "^1.1.27",

templates/nsis/installer.nsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ FunctionEnd
5050

5151
Function un.onInit
5252
!insertmacro check64BitAndSetRegView
53+
54+
${IfNot} ${Silent}
55+
MessageBox MB_OKCANCEL "Are you sure you want to uninstall ${PRODUCT_NAME}?" IDOK next
56+
Quit
57+
58+
next:
59+
${EndIf}
60+
5361
!insertmacro initMultiUser Un un.
5462

5563
!ifmacrodef customUnInit

0 commit comments

Comments
 (0)