Files
waggle-os/app/src-tauri/nsis/installer.nsi
shumeiko.it 74200d46e8 fix: five defects found while rewriting the docs (UF-061 to UF-065)
- Key messages named a Settings > API Keys tab that does not exist; they
  now point at Settings > Models (UF-061).
- The connector suggestion looked for vault.db, which never exists; it
  now checks the vault for a connector entry (UF-062).
- /config and /preferences were registered with a leading slash and
  never matched (UF-063).
- Pins and documents were written under ~/.waggle whatever the data
  directory; they now use the server's data directory (UF-064).
- The Windows uninstaller named a Data & Privacy page that does not
  exist (UF-065).
2026-11-01 02:08:57 +01:00

26 lines
1.2 KiB
NSIS

; Waggle-specific extensions for Tauri's NSIS installer.
;
; Tauri owns install location, shortcuts, finish-page launch, silent /R launch,
; registry entries, and uninstaller cleanup. Do not duplicate those here: doing
; so double-launched normal installs and made silent repair nondeterministic.
; Autostart is handled by tauri-plugin-autostart at runtime.
; Personal data is always preserved by the package uninstaller. Tauri's base
; uninstaller exposes a generic "Delete app data" checkbox, so PREUNINSTALL
; explicitly neutralizes that state. Destructive erasure is available only
; through Waggle's authenticated, phrase-gated UI.
;
; Reference: https://v2.tauri.app/distribute/windows-installer/#extending-the-installer
!macro NSIS_HOOK_PREINSTALL
DetailPrint "Installing Waggle..."
DetailPrint "Your personal AI agent workspace - powered by Waggle."
!macroend
!macro NSIS_HOOK_PREUNINSTALL
StrCmp $DeleteAppDataCheckboxState "1" 0 +2
MessageBox MB_OK|MB_ICONINFORMATION \
"For safety, Waggle always preserves app data during uninstall. Data can only be erased from Settings > General > Erase all my data while Waggle is installed."
StrCpy $DeleteAppDataCheckboxState 0
DetailPrint "Preserving Waggle app data."
!macroend