Skip to content

Commit ae6fe67

Browse files
committed
Delete app data on Windows uninstall
Set `deleteAppDataOnUninstall: true` in the NSIS config so that `%APPDATA%\{appName}` is automatically removed when a user uninstalls the application. The underlying NSIS template already skips deletion during updates (`${ifNot} ${isUpdated}`), so app data is preserved when updating to a new version. Without this flag, the app data directory persists after uninstall and users have to find and delete it manually.
1 parent 5aa0959 commit ae6fe67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

resources/electron/electron-builder.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export default {
9595
shortcutName: '${productName}',
9696
uninstallDisplayName: '${productName}',
9797
createDesktopShortcut: 'always',
98+
deleteAppDataOnUninstall: true,
9899
},
99100
protocols: {
100101
name: deepLinkProtocol,

0 commit comments

Comments
 (0)