Skip to content

Commit 07b6153

Browse files
kovtcharovclaude
andcommitted
feat(installer): optional data cleanup checkbox in Windows uninstaller
Add a Yes/No MessageBox to the NSIS customUnInstall macro that offers to remove ~/.gaia/ (chats, documents, Python venv, config, logs) during uninstall. Default is No so users keep their data unless they explicitly opt in. Silent uninstalls (/SD IDNO) also default to keeping data. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7e92824 commit 07b6153

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

installer/nsis/installer.nsh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,22 @@
6969
!macro customUnInstall
7070
DeleteRegValue HKCU "Software\Microsoft\Windows\CurrentVersion\Run" \
7171
"${PRODUCT_NAME}"
72+
73+
; Offer to remove user data (~/.gaia/) — chats, documents, Python venv,
74+
; config, and logs. Default is "No" so users keep their data unless they
75+
; explicitly opt in. This matches the tiered uninstall design in §5 of
76+
; the desktop installer plan.
77+
MessageBox MB_YESNO|MB_ICONQUESTION \
78+
"Also remove your GAIA data (chats, documents, Python environment)?$\r$\n$\r$\nThis cannot be undone." \
79+
/SD IDNO \
80+
IDYES _gaiaRemoveData IDNO _gaiaKeepData
81+
82+
_gaiaRemoveData:
83+
RmDir /r "$PROFILE\.gaia"
84+
Goto _gaiaDone
85+
86+
_gaiaKeepData:
87+
; User chose to keep data — nothing to do.
88+
89+
_gaiaDone:
7290
!macroend

0 commit comments

Comments
 (0)