fix: #190 Delete user settings on uninstall (NSIS) (#203)

This commit is contained in:
Felix Häusler 2018-04-22 12:57:10 +02:00 committed by 冉四夕
parent cfd0d0a2fa
commit da5e64a143
3 changed files with 9 additions and 1 deletions

1
.gitignore vendored
View File

@ -3,6 +3,7 @@ dist/electron/*
dist/web/*
build/*
!build/icons
!build/windows
coverage
.vscode
node_modules/

View File

@ -0,0 +1,6 @@
!macro customUnInstall
MessageBox MB_YESNO "Do you want to delete user settings?" /SD IDNO IDNO SkipRemoval
SetShellVarContext current
RMDir /r "$APPDATA\marktext"
SkipRemoval:
!macroend

View File

@ -82,7 +82,8 @@
"nsis": {
"perMachine": true,
"oneClick": false,
"allowToChangeInstallationDirectory": true
"allowToChangeInstallationDirectory": true,
"include": "build/windows/installer.nsh"
},
"linux": {
"category": "Office;TextEditor;Utility",