Skip to content

Commit

Permalink
feat: Uninstall Confirm Dialog Option for One-click Windows NSIS
Browse files Browse the repository at this point in the history
Closes #618
  • Loading branch information
develar committed Aug 2, 2016
1 parent e6ce209 commit e99047d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ install:
- nvm use --delete-prefix $NODE_VERSION
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$NODE_VERSION" == "4" ]]; then npm install npm -g ; fi
- npm install
- npm install @develar/semantic-release
- npm prune
- (cd test/fixtures/app-executable-deps/app && npm install && npm prune)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
]
},
"devDependencies": {
"@develar/semantic-release": "^6.3.4",
"@develar/semantic-release": "^6.3.5",
"@types/debug": "0.0.28",
"@types/mime": "0.0.28",
"@types/progress": "^1.1.27",
Expand Down
8 changes: 8 additions & 0 deletions templates/nsis/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ FunctionEnd

Function un.onInit
!insertmacro check64BitAndSetRegView

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

next:
${EndIf}

!insertmacro initMultiUser Un un.

!ifmacrodef customUnInit
Expand Down

0 comments on commit e99047d

Please sign in to comment.