diff --git a/packages/electron-builder/templates/nsis/uninstaller.nsh b/packages/electron-builder/templates/nsis/uninstaller.nsh index 0b973e06831..163bc21363a 100644 --- a/packages/electron-builder/templates/nsis/uninstaller.nsh +++ b/packages/electron-builder/templates/nsis/uninstaller.nsh @@ -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"