Skip to content

Commit

Permalink
feat: ask if the user wants to clear the local data on uninstall (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuruk-mm authored Mar 1, 2022
1 parent 6c96e37 commit ce355f9
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
8 changes: 8 additions & 0 deletions electron/installer.nsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
!macro customUnInstall
MessageBox MB_YESNO "Do you want to clear the local data?" IDYES true IDNO false
true:
DeleteRegKey HKCU "SOFTWARE\Decentraland"
Goto next
false:
next:
!macroend
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "explorer-desktop-launcher",
"version": "0.1.29",
"version": "0.1.30",
"author": "decentraland",
"description": "Decentraland Desktop Launcher",
"homepage": ".",
Expand Down Expand Up @@ -60,7 +60,9 @@
"target": [
"nsis"
],
"signingHashAlgorithms": [ "sha256" ],
"signingHashAlgorithms": [
"sha256"
],
"rfc3161TimeStampServer": "http://ts.ssl.com",
"timeStampServer": "http://ts.ssl.com"
},
Expand All @@ -71,7 +73,8 @@
"installerIcon": "public/installer-icon.ico",
"allowToChangeInstallationDirectory": true,
"deleteAppDataOnUninstall": true,
"perMachine": true
"perMachine": true,
"include": "electron/installer.nsh"
},
"linux": {
"icon": "public/app-icon.png",
Expand Down Expand Up @@ -111,4 +114,4 @@
"last 1 safari version"
]
}
}
}

0 comments on commit ce355f9

Please sign in to comment.