mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Block if user tries to install to the RCT2 folder
This commit is contained in:
@@ -76,6 +76,7 @@ Var SHORTCUTS
|
|||||||
!define MUI_COMPONENTSPAGE_SMALLDESC
|
!define MUI_COMPONENTSPAGE_SMALLDESC
|
||||||
!insertmacro MUI_PAGE_COMPONENTS
|
!insertmacro MUI_PAGE_COMPONENTS
|
||||||
|
|
||||||
|
!define MUI_PAGE_CUSTOMFUNCTION_LEAVE DoNotInstallInRCT2Folder
|
||||||
!insertmacro MUI_PAGE_DIRECTORY
|
!insertmacro MUI_PAGE_DIRECTORY
|
||||||
|
|
||||||
ManifestDPIAware true
|
ManifestDPIAware true
|
||||||
@@ -552,4 +553,12 @@ FunctionEnd
|
|||||||
Function un.onInit
|
Function un.onInit
|
||||||
!insertmacro Init "uninstaller"
|
!insertmacro Init "uninstaller"
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
|
Function DoNotInstallInRCT2Folder
|
||||||
|
IfFileExists "$INSTDIR\Data\g1.dat" exists notexists
|
||||||
|
exists:
|
||||||
|
MessageBox MB_OK|MB_ICONSTOP `You cannot install OpenRCT2 to the same directory as RollerCoaster Tycoon 2.`
|
||||||
|
Abort
|
||||||
|
notexists:
|
||||||
|
FunctionEnd
|
||||||
; eof
|
; eof
|
||||||
|
|||||||
Reference in New Issue
Block a user