fix(installer): ensure complete cleanup of certs, configs, database, logs, and directories upon uninstallation
Release Binaries & Packages / Build & Release Standalone Binaries (Linux & Windows Cross-Compilation) (push) Canceled after 0s
CI Test Suite / Run Component Tests & Pipeline Verification (push) Successful in 1m12s

This commit is contained in:
2026-09-26 19:58:15 +02:00
parent 48bb279601
commit e47fe609a6
4 changed files with 32 additions and 2 deletions
+7 -1
View File
@@ -37,8 +37,14 @@ Section "Uninstall"
ExecWait '"$INSTDIR\nssm.exe" stop LOGAR_Server'
ExecWait '"$INSTDIR\nssm.exe" remove LOGAR_Server confirm'
RMDir /r "$INSTDIR\runtime"
RMDir /r "$INSTDIR\certs"
Delete "$INSTDIR\server_config.json"
Delete "$INSTDIR\logar_state.db"
Delete "$INSTDIR\logar_state.db-*"
Delete "$INSTDIR\*.log"
Delete "$INSTDIR\Server.exe"
Delete "$INSTDIR\nssm.exe"
Delete "$INSTDIR\uninstall.exe"
RMDir "$INSTDIR"
RMDir /r "$INSTDIR"
RMDir /r "$COMMONAPPDATA\LOGAR-Server"
SectionEnd