From 771bf0ba08a37d69131b1149e44d0ec8ebf4ef4f Mon Sep 17 00:00:00 2001 From: Itms Date: Sun, 14 Dec 2025 10:39:03 +0100 Subject: [PATCH] Fix NSIS auto-uninstall The NSIS script incorrectly passes the default installation dir as argument for the auto-uninstaller of previous installs. This is supposed to avoid moving the uninstaller to a temp file, but it is unclear why that was done, as this leaves the uninstaller behind. More importantly, now that we have changed the default installation directory, the auto-uninstall tries to remove the previous install from the new location, which does nothing and leaves behind several GB on the disk. --- source/tools/dist/0ad.nsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/tools/dist/0ad.nsi b/source/tools/dist/0ad.nsi index 6277b06335..7e744f4360 100644 --- a/source/tools/dist/0ad.nsi +++ b/source/tools/dist/0ad.nsi @@ -229,7 +229,7 @@ Function .onInit ;Run the uninstaller uninst: ClearErrors - ExecWait '$R0 _?=$INSTDIR' ;Do not copy the uninstaller to a temp file + ExecWait '$R0' done: