summaryrefslogtreecommitdiff
path: root/os/windows
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-14 21:39:14 +0000
committerrubidium <rubidium@openttd.org>2011-11-14 21:39:14 +0000
commit387e410f3e7898cadec041f2849bc949810544bb (patch)
treeaba21e7a083360b9a792608ffdbb09cb0685f519 /os/windows
parent79b82b56a8bf3faf7733afe02470c20ce3cbfa47 (diff)
downloadopenttd-387e410f3e7898cadec041f2849bc949810544bb.tar.xz
(svn r23221) -Codechange: update the documentation and installers regarding the new directories
Diffstat (limited to 'os/windows')
-rw-r--r--os/windows/installer/install.nsi136
1 files changed, 78 insertions, 58 deletions
diff --git a/os/windows/installer/install.nsi b/os/windows/installer/install.nsi
index db0f1c170..536e28c36 100644
--- a/os/windows/installer/install.nsi
+++ b/os/windows/installer/install.nsi
@@ -125,15 +125,12 @@ Section "!OpenTTD" Section1
File ${PATH_ROOT}bin\ai\compat_*.nut
; Copy data files
- SetOutPath "$INSTDIR\data\"
- File ${PATH_ROOT}bin\data\*.grf
- File ${PATH_ROOT}bin\data\*.obg
- File ${PATH_ROOT}bin\data\*.obs
- File ${PATH_ROOT}bin\data\opntitle.dat
-
- ; Copy the music base metadata files
- SetOutPath "$INSTDIR\gm\"
- File ${PATH_ROOT}bin\gm\*.obm
+ SetOutPath "$INSTDIR\baseset\"
+ File ${PATH_ROOT}bin\baseset\*.grf
+ File ${PATH_ROOT}bin\baseset\*.obg
+ File ${PATH_ROOT}bin\baseset\*.obm
+ File ${PATH_ROOT}bin\baseset\*.obs
+ File ${PATH_ROOT}bin\baseset\opntitle.dat
; Copy the scripts
SetOutPath "$INSTDIR\scripts\"
@@ -171,12 +168,30 @@ Section "!OpenTTD" Section1
File /oname=openttd.exe ${BINARY_DIR}\openttd.exe
- ; Delete old files from the main dir. they are now placed in data/ and lang/
+ ; Delete old files from the main dir. they are now placed in baseset/ and lang/
Delete "$INSTDIR\*.lng"
Delete "$INSTDIR\*.grf"
Delete "$INSTDIR\sample.cat"
Delete "$INSTDIR\ttd.exe"
-
+ Delete "$INSTDIR\data\opntitle.dat"
+ Delete "$INSTDIR\data\2ccmap.grf"
+ Delete "$INSTDIR\data\airports.grf"
+ Delete "$INSTDIR\data\autorail.grf"
+ Delete "$INSTDIR\data\canalsw.grf"
+ Delete "$INSTDIR\data\dosdummy.grf"
+ Delete "$INSTDIR\data\elrailsw.grf"
+ Delete "$INSTDIR\data\nsignalsw.grf"
+ Delete "$INSTDIR\data\openttd.grf"
+ Delete "$INSTDIR\data\roadstops.grf"
+ Delete "$INSTDIR\data\trkfoundw.grf"
+ Delete "$INSTDIR\data\openttdd.grf"
+ Delete "$INSTDIR\data\openttdw.grf"
+ Delete "$INSTDIR\data\orig_win.obg"
+ Delete "$INSTDIR\data\orig_dos.obg"
+ Delete "$INSTDIR\data\orig_dos_de.obg"
+ Delete "$INSTDIR\data\orig_win.obs"
+ Delete "$INSTDIR\data\orig_dos.obs"
+ Delete "$INSTDIR\data\no_sound.obs"
; Create the Registry Entries
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "Comments" "Visit ${APPURLLINK}"
@@ -224,17 +239,17 @@ SectionEnd
Section "Download OpenGFX (free graphics set)" Section3
SetOverwrite try
- NSISdl::download "http://binaries.openttd.org/installer/opengfx-${OPENGFX_BASE_VERSION}.7z" "$INSTDIR\data\opengfx.7z"
+ NSISdl::download "http://binaries.openttd.org/installer/opengfx-${OPENGFX_BASE_VERSION}.7z" "$INSTDIR\baseset\opengfx.7z"
Pop $R0 ;Get the return value
StrCmp $R0 "success" +3
MessageBox MB_OK "Downloading of OpenGFX failed"
Goto Done
; Let's extract the files
- SetOutPath "$INSTDIR\data\"
- NSIS7z::Extract "$INSTDIR\data\opengfx.7z"
+ SetOutPath "$INSTDIR\baseset\"
+ NSIS7z::Extract "$INSTDIR\baseset\opengfx.7z"
- Delete "$INSTDIR\data\opengfx.7z"
+ Delete "$INSTDIR\baseset\opengfx.7z"
SetOutPath "$INSTDIR\"
Done:
@@ -245,17 +260,17 @@ SectionEnd
Section "Download OpenSFX (free sound set)" Section4
SetOverwrite try
- NSISdl::download "http://binaries.openttd.org/installer/opensfx-${OPENSFX_BASE_VERSION}.7z" "$INSTDIR\data\opensfx.7z"
+ NSISdl::download "http://binaries.openttd.org/installer/opensfx-${OPENSFX_BASE_VERSION}.7z" "$INSTDIR\baseset\opensfx.7z"
Pop $R0 ;Get the return value
StrCmp $R0 "success" +3
MessageBox MB_OK "Downloading of OpenSFX failed"
Goto Done
; Let's extract the files
- SetOutPath "$INSTDIR\data\"
- NSIS7z::Extract "$INSTDIR\data\opensfx.7z"
+ SetOutPath "$INSTDIR\baseset\"
+ NSIS7z::Extract "$INSTDIR\baseset\opensfx.7z"
- Delete "$INSTDIR\data\opensfx.7z"
+ Delete "$INSTDIR\baseset\opensfx.7z"
SetOutPath "$INSTDIR\"
Done:
@@ -287,22 +302,21 @@ SectionEnd
Section /o "Copy data from Transport Tycoon Deluxe CD-ROM" Section2
SetOverwrite try
; Let's copy the files with size approximation
- SetOutPath "$INSTDIR\gm"
- CopyFiles "$CDDRIVE\gm\*.gm" "$INSTDIR\gm\" 1028
- SetOutPath "$INSTDIR\data\"
- CopyFiles "$CDDRIVE\sample.cat" "$INSTDIR\data\sample.cat" 1566
+ SetOutPath "$INSTDIR\baseset"
+ CopyFiles "$CDDRIVE\gm\*.gm" "$INSTDIR\baseset\" 1028
+ CopyFiles "$CDDRIVE\sample.cat" "$INSTDIR\baseset\sample.cat" 1566
; Copy Windows files
- CopyFiles "$CDDRIVE\trg1r.grf" "$INSTDIR\data\trg1r.grf" 2365
- CopyFiles "$CDDRIVE\trgcr.grf" "$INSTDIR\data\trgcr.grf" 260
- CopyFiles "$CDDRIVE\trghr.grf" "$INSTDIR\data\trghr.grf" 400
- CopyFiles "$CDDRIVE\trgir.grf" "$INSTDIR\data\trgir.grf" 334
- CopyFiles "$CDDRIVE\trgtr.grf" "$INSTDIR\data\trgtr.grf" 546
+ CopyFiles "$CDDRIVE\trg1r.grf" "$INSTDIR\baseset\trg1r.grf" 2365
+ CopyFiles "$CDDRIVE\trgcr.grf" "$INSTDIR\baseset\trgcr.grf" 260
+ CopyFiles "$CDDRIVE\trghr.grf" "$INSTDIR\baseset\trghr.grf" 400
+ CopyFiles "$CDDRIVE\trgir.grf" "$INSTDIR\baseset\trgir.grf" 334
+ CopyFiles "$CDDRIVE\trgtr.grf" "$INSTDIR\baseset\trgtr.grf" 546
; Copy DOS files
- CopyFiles "$CDDRIVE\trg1.grf" "$INSTDIR\data\trg1.grf" 2365
- CopyFiles "$CDDRIVE\trgc.grf" "$INSTDIR\data\trgc.grf" 260
- CopyFiles "$CDDRIVE\trgh.grf" "$INSTDIR\data\trgh.grf" 400
- CopyFiles "$CDDRIVE\trgi.grf" "$INSTDIR\data\trgi.grf" 334
- CopyFiles "$CDDRIVE\trgt.grf" "$INSTDIR\data\trgt.grf" 546
+ CopyFiles "$CDDRIVE\trg1.grf" "$INSTDIR\baseset\trg1.grf" 2365
+ CopyFiles "$CDDRIVE\trgc.grf" "$INSTDIR\baseset\trgc.grf" 260
+ CopyFiles "$CDDRIVE\trgh.grf" "$INSTDIR\baseset\trgh.grf" 400
+ CopyFiles "$CDDRIVE\trgi.grf" "$INSTDIR\baseset\trgi.grf" 334
+ CopyFiles "$CDDRIVE\trgt.grf" "$INSTDIR\baseset\trgt.grf" 546
SetOutPath "$INSTDIR\"
SectionEnd
@@ -388,46 +402,49 @@ Section "Uninstall"
; AI files
Delete "$INSTDIR\ai\compat_*.nut"
- ; Data files
- Delete "$INSTDIR\data\opntitle.dat"
-
- Delete "$INSTDIR\data\2ccmap.grf"
- Delete "$INSTDIR\data\airports.grf"
- Delete "$INSTDIR\data\autorail.grf"
- Delete "$INSTDIR\data\canalsw.grf"
- Delete "$INSTDIR\data\dosdummy.grf"
- Delete "$INSTDIR\data\elrailsw.grf"
- Delete "$INSTDIR\data\nsignalsw.grf"
- Delete "$INSTDIR\data\openttd.grf"
- Delete "$INSTDIR\data\roadstops.grf"
- Delete "$INSTDIR\data\trkfoundw.grf"
- Delete "$INSTDIR\data\openttdd.grf"
- Delete "$INSTDIR\data\openttdw.grf"
- Delete "$INSTDIR\data\orig_win.obg"
- Delete "$INSTDIR\data\orig_dos.obg"
- Delete "$INSTDIR\data\orig_dos_de.obg"
- Delete "$INSTDIR\data\orig_win.obs"
- Delete "$INSTDIR\data\orig_dos.obs"
- Delete "$INSTDIR\data\no_sound.obs"
+ ; Baseset files
+ Delete "$INSTDIR\baseset\opntitle.dat"
+ Delete "$INSTDIR\baseset\openttd.grf"
+ Delete "$INSTDIR\baseset\orig_win.obg"
+ Delete "$INSTDIR\baseset\orig_dos.obg"
+ Delete "$INSTDIR\baseset\orig_dos_de.obg"
+ Delete "$INSTDIR\baseset\orig_win.obs"
+ Delete "$INSTDIR\baseset\orig_dos.obs"
+ Delete "$INSTDIR\baseset\no_sound.obs"
+ Delete "$INSTDIR\baseset\sample.cat"
+ Delete "$INSTDIR\baseset\trg1r.grf"
+ Delete "$INSTDIR\baseset\trghr.grf"
+ Delete "$INSTDIR\baseset\trgtr.grf"
+ Delete "$INSTDIR\baseset\trgcr.grf"
+ Delete "$INSTDIR\baseset\trgir.grf"
+ Delete "$INSTDIR\baseset\trg1.grf"
+ Delete "$INSTDIR\baseset\trgh.grf"
+ Delete "$INSTDIR\baseset\trgt.grf"
+ Delete "$INSTDIR\baseset\trgc.grf"
+ Delete "$INSTDIR\baseset\trgi.grf"
+ Delete "$INSTDIR\baseset\*.gm"
Delete "$INSTDIR\data\sample.cat"
- ; Windows Data files
Delete "$INSTDIR\data\trg1r.grf"
Delete "$INSTDIR\data\trghr.grf"
Delete "$INSTDIR\data\trgtr.grf"
Delete "$INSTDIR\data\trgcr.grf"
Delete "$INSTDIR\data\trgir.grf"
- ; Dos Data files
Delete "$INSTDIR\data\trg1.grf"
Delete "$INSTDIR\data\trgh.grf"
Delete "$INSTDIR\data\trgt.grf"
Delete "$INSTDIR\data\trgc.grf"
Delete "$INSTDIR\data\trgi.grf"
-
- ; Music
Delete "$INSTDIR\gm\*.gm"
; Downloaded OpenGFX/OpenSFX/OpenMSX
+ Delete "$INSTDIR\baseset\opengfx\*"
+ RMDir "$INSTDIR\baseset\opengfx"
+ Delete "$INSTDIR\baseset\opensfx\*"
+ RMDir "$INSTDIR\baseset\opensfx"
+ Delete "$INSTDIR\baseset\openmsx\*"
+ RMDir "$INSTDIR\baseset\openmsx"
+
Delete "$INSTDIR\data\opengfx\*"
RMDir "$INSTDIR\data\opengfx"
Delete "$INSTDIR\data\opensfx\*"
@@ -447,6 +464,8 @@ Section "Uninstall"
; Base sets for music
Delete "$INSTDIR\gm\orig_win.obm"
Delete "$INSTDIR\gm\no_music.obm"
+ Delete "$INSTDIR\baseset\orig_win.obm"
+ Delete "$INSTDIR\baseset\no_music.obm"
; Remove remaining directories
RMDir "$SMPROGRAMS\$SHORTCUTS\Extras\"
@@ -455,6 +474,7 @@ Section "Uninstall"
RMDir "$SMPROGRAMS\$SHORTCUTS"
RMDir "$INSTDIR\ai"
RMDir "$INSTDIR\data"
+ RMDir "$INSTDIR\baseset"
RMDir "$INSTDIR\gm"
RMDir "$INSTDIR\lang"
RMDir "$INSTDIR\scripts"