fix(installer): ensure complete cleanup of certs, configs, database, logs, and directories upon uninstallation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user