From d4b6d20dd53de37e38802e6eeb636ccd9cbc350b Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Fri, 9 May 2025 14:19:39 +0200 Subject: [PATCH] Clear out data dir before upgrading --- distribution/windows/install.nsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/windows/install.nsi b/distribution/windows/install.nsi index a9a4bac6c0..8f73ee29ef 100644 --- a/distribution/windows/install.nsi +++ b/distribution/windows/install.nsi @@ -150,7 +150,8 @@ Section "!OpenRCT2" Section1 SetShellVarContext all - ; Copy data files + ; Copy data files. Clear out the old dir first, to ensure upgrades do not result in old objects sticking around. + RMDir /r "$INSTDIR\data" SetOutPath "$INSTDIR\data\" File /r ${PATH_ROOT}bin\data\*