windows installer fixes
CI Test Suite / Run Component Tests & Pipeline Verification (push) Successful in 1m21s
Release Binaries & Packages / Build & Release Standalone Binaries (Linux & Windows Cross-Compilation) (push) Successful in 7m43s

This commit is contained in:
2026-09-26 22:09:40 +02:00
parent 2e256baf4a
commit ce7d2b97d2
4 changed files with 30 additions and 2 deletions
+14 -1
View File
@@ -108,7 +108,8 @@ end;
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
var
CustomDataDir: String;
CustomDataDir, AppDir: String;
I: Integer;
begin
if CurUninstallStep = usPostUninstall then
begin
@@ -118,5 +119,17 @@ begin
DelTree(CustomDataDir, True, True, True);
RegDeleteKeyIncludingSubkeys(HKEY_LOCAL_MACHINE, 'Software\LOGAR\LOGAR-Client');
end;
AppDir := ExpandConstant('{app}');
if (AppDir <> '') and DirExists(AppDir) then
begin
for I := 1 to 5 do
begin
if DeleteFile(AppDir + '\nssm.exe') or not FileExists(AppDir + '\nssm.exe') then
Break;
Sleep(250);
end;
DelTree(AppDir, True, True, True);
end;
end;
end;
+1
View File
@@ -140,6 +140,7 @@ Section "Uninstall"
ExecWait '"$INSTDIR\nssm.exe" stop LOGAR_Client'
ExecWait '"$INSTDIR\nssm.exe" remove LOGAR_Client confirm'
Sleep 500
RMDir /r "$INSTDIR\runtime"
RMDir /r "$INSTDIR\certs"
Delete "$INSTDIR\client_config.json"
+14 -1
View File
@@ -84,7 +84,8 @@ end;
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
var
CustomDataDir: String;
CustomDataDir, AppDir: String;
I: Integer;
begin
if CurUninstallStep = usPostUninstall then
begin
@@ -94,5 +95,17 @@ begin
DelTree(CustomDataDir, True, True, True);
RegDeleteKeyIncludingSubkeys(HKEY_LOCAL_MACHINE, 'Software\LOGAR\LOGAR-Server');
end;
AppDir := ExpandConstant('{app}');
if (AppDir <> '') and DirExists(AppDir) then
begin
for I := 1 to 5 do
begin
if DeleteFile(AppDir + '\nssm.exe') or not FileExists(AppDir + '\nssm.exe') then
Break;
Sleep(250);
end;
DelTree(AppDir, True, True, True);
end;
end;
end;
+1
View File
@@ -90,6 +90,7 @@ Section "Uninstall"
ExecWait '"$INSTDIR\nssm.exe" stop LOGAR_Server'
ExecWait '"$INSTDIR\nssm.exe" remove LOGAR_Server confirm'
Sleep 500
RMDir /r "$INSTDIR\runtime"
RMDir /r "$INSTDIR\certs"
Delete "$INSTDIR\server_config.json"