mirror of https://github.com/OpenTTD/OpenTTD
(svn r8929) -Codechange: [win32] Give the installer a slightly more verbose link at the final screen and also copy any heightmaps to the desination directory.
parent
61a4f434d7
commit
eb1af4a65e
|
@ -76,7 +76,7 @@ Page custom SelectCDEnter SelectCDExit ": TTD folder"
|
||||||
Page custom ShowWarningsPage
|
Page custom ShowWarningsPage
|
||||||
|
|
||||||
!define MUI_FINISHPAGE_RUN "$INSTDIR\openttd.exe"
|
!define MUI_FINISHPAGE_RUN "$INSTDIR\openttd.exe"
|
||||||
!define MUI_FINISHPAGE_LINK "Visit OpenTTD's homepage"
|
!define MUI_FINISHPAGE_LINK "Visit the OpenTTD site for latest news, FAQs and downloads"
|
||||||
!define MUI_FINISHPAGE_LINK_LOCATION "${APPURLLINK}"
|
!define MUI_FINISHPAGE_LINK_LOCATION "${APPURLLINK}"
|
||||||
!define MUI_FINISHPAGE_NOREBOOTSUPPORT
|
!define MUI_FINISHPAGE_NOREBOOTSUPPORT
|
||||||
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\readme.txt"
|
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\readme.txt"
|
||||||
|
@ -114,6 +114,10 @@ Section "!OpenTTD" Section1
|
||||||
SetOutPath "$INSTDIR\scenario\"
|
SetOutPath "$INSTDIR\scenario\"
|
||||||
File /nonfatal ${PATH_ROOT}bin\scenario\*.scn
|
File /nonfatal ${PATH_ROOT}bin\scenario\*.scn
|
||||||
|
|
||||||
|
; Copy heightmap files (don't choke if they don't exist)
|
||||||
|
SetOutPath "$INSTDIR\scenario\heightmap\"
|
||||||
|
File /nonfatal ${PATH_ROOT}bin\scenario\heightmap\*.*
|
||||||
|
|
||||||
; Copy the rest of the stuff
|
; Copy the rest of the stuff
|
||||||
SetOutPath "$INSTDIR\"
|
SetOutPath "$INSTDIR\"
|
||||||
|
|
||||||
|
@ -214,6 +218,8 @@ Section "Uninstall"
|
||||||
If you choose Yes, your scenarios will be deleted." \
|
If you choose Yes, your scenarios will be deleted." \
|
||||||
IDYES RemoveScen IDNO NoRemoveScen
|
IDYES RemoveScen IDNO NoRemoveScen
|
||||||
RemoveScen:
|
RemoveScen:
|
||||||
|
Delete "$INSTDIR\scenario\heightmap*"
|
||||||
|
RMDir "$INSTDIR\scenario\heightmap"
|
||||||
Delete "$INSTDIR\scenario\*"
|
Delete "$INSTDIR\scenario\*"
|
||||||
RMDir "$INSTDIR\scenario"
|
RMDir "$INSTDIR\scenario"
|
||||||
NoRemoveScen:
|
NoRemoveScen:
|
||||||
|
|
Loading…
Reference in New Issue