ubsicap / sltt-app

0 stars 0 forks source link

feat(sltt-app): clear app data on uninstall #18

Closed ericpyle closed 2 months ago

ericpyle commented 4 months ago

I'm not 100% this is what we want, but it may be the simplest way to reset someone's app if it's in a bad state (e.g. due to files on disk being out of sync with what's in the browser cache).

https://stackoverflow.com/questions/57627496/how-can-we-remove-the-appdata-of-an-electron-msi-application-when-we-uninstall-i

https://stackoverflow.com/a/72571873/24056785

in electron-builder configuration add:

"build": {
    "nsis": {
      "deleteAppDataOnUninstall": true
    }
 }

To prompt if the user wants to remove the data:

https://github.com/electron-userland/electron-builder/issues/4141#issue-479212515

ericpyle commented 4 months ago

Hopefully this does not get triggered during auto-updates