From fd5e95e29d91df19688d3ad6dbb0431103a09b6f Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sun, 11 May 2025 23:48:48 +0200 Subject: [PATCH] Also check for the presence of RCT Classic --- distribution/windows/install.nsi | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/distribution/windows/install.nsi b/distribution/windows/install.nsi index 9a77e780e0..4b92dbbba9 100644 --- a/distribution/windows/install.nsi +++ b/distribution/windows/install.nsi @@ -555,10 +555,15 @@ Function un.onInit FunctionEnd Function DoNotInstallInRCT2Folder - IfFileExists "$INSTDIR\Data\g1.dat" exists notexists - exists: + IfFileExists "$INSTDIR\Data\g1.dat" datag1exists datag1notexists + datag1exists: MessageBox MB_OK|MB_ICONSTOP `You cannot install OpenRCT2 to the same directory as RollerCoaster Tycoon 2.` Abort - notexists: + datag1notexists: + IfFileExists "$INSTDIR\Assets\g1.dat" assetsg1exists assetsg1notexists + assetsg1exists: + MessageBox MB_OK|MB_ICONSTOP `You cannot install OpenRCT2 to the same directory as RollerCoaster Classic.` + Abort + assetsg1notexists: FunctionEnd ; eof