Skip to content

Commit

Permalink
feat(nsis): Add option to define custom files to be removed instead o…
Browse files Browse the repository at this point in the history
…f just nuking installation directory

Temporary solution for #1298 (#1300)
  • Loading branch information
mastergberry authored and develar committed Feb 24, 2017
1 parent f1d524a commit 09f7fde
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/electron-builder/templates/nsis/uninstaller.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ Section "un.install"
!endif

# delete the installed files
RMDir /r /REBOOTOK $INSTDIR
!ifmacrodef customRemoveFiles
!insertmacro customRemoveFiles
!else
RMDir /r /REBOOTOK $INSTDIR
!endif

Var /GLOBAL isDeleteAppData
StrCpy $isDeleteAppData "0"
Expand Down

0 comments on commit 09f7fde

Please sign in to comment.