1 ; Define your application name |
1 ; Define your application name |
2 !define APPNAME "OpenTTD" |
2 !define APPNAME "OpenTTD" |
3 !define APPNAMEANDVERSION "OpenTTD 0.3.3.0" |
3 !define APPNAMEANDVERSION "OpenTTD 0.3.4.0" |
4 !define APPVERSION "0.3.3.0" |
4 !define APPVERSION "0.3.4.0" |
5 !define INSTALLERVERSION 11 |
5 !define INSTALLERVERSION 11 |
6 |
6 |
7 BrandingText "OpenTTD Installer" |
7 BrandingText "OpenTTD Installer" |
8 |
8 |
9 |
9 |
10 ; Version Info |
10 ; Version Info |
11 Var AddWinPrePopulate |
11 Var AddWinPrePopulate |
12 VIProductVersion "0.3.3.0" |
12 VIProductVersion "${APPVERSION}" |
13 VIAddVersionKey "ProductName" "OpenTTD Installer" |
13 VIAddVersionKey "ProductName" "OpenTTD Installer" |
14 VIAddVersionKey "Comments" "Installs ${APPNAMEANDVERSION}" |
14 VIAddVersionKey "Comments" "Installs ${APPNAMEANDVERSION}" |
15 VIAddVersionKey "CompanyName" "OpenTTD Developers" |
15 VIAddVersionKey "CompanyName" "OpenTTD Developers" |
16 VIAddVersionKey "FileDescription" "Installs ${APPNAMEANDVERSION}" |
16 VIAddVersionKey "FileDescription" "Installs ${APPNAMEANDVERSION}" |
17 VIAddVersionKey "ProductVersion" "${APPVERSION}" |
17 VIAddVersionKey "ProductVersion" "${APPVERSION}" |
95 File ${PATH_ROOT}lang\*.lng |
95 File ${PATH_ROOT}lang\*.lng |
96 File ${PATH_ROOT}lang\english.txt |
96 File ${PATH_ROOT}lang\english.txt |
97 |
97 |
98 ; Copy data files |
98 ; Copy data files |
99 SetOutPath "$INSTDIR\data\" |
99 SetOutPath "$INSTDIR\data\" |
|
100 File ${PATH_ROOT}data\canalsw.grf |
|
101 File ${PATH_ROOT}data\openttd.grf |
100 File ${PATH_ROOT}data\opntitle.dat |
102 File ${PATH_ROOT}data\opntitle.dat |
101 File ${PATH_ROOT}data\signalsw.grf |
103 File ${PATH_ROOT}data\signalsw.grf |
102 File ${PATH_ROOT}data\openttd.grf |
104 File ${PATH_ROOT}data\trkfoundw.grf |
103 File ${PATH_ROOT}data\canalsw.grf |
|
104 File ${PATH_ROOT}ReleasePNG\ttd.map |
|
105 |
105 |
106 ; Copy the rest of the stuff |
106 ; Copy the rest of the stuff |
107 SetOutPath "$INSTDIR\" |
107 SetOutPath "$INSTDIR\" |
108 |
108 |
109 ;Copy text files |
109 ;Copy text files |
110 File ${PATH_ROOT}changelog.txt |
110 File ${PATH_ROOT}changelog.txt |
111 ; File "gpl.txt" |
111 File ${PATH_ROOT}COPYING |
112 File ${PATH_ROOT}readme.txt |
112 File ${PATH_ROOT}readme.txt |
113 |
113 |
114 ; Copy executable |
114 ; Copy executable |
115 File /oname=openttd.exe ${PATH_ROOT}ReleasePNG\openttd.exe |
115 File /oname=openttd.exe ${PATH_ROOT}Release\openttd.exe |
116 File ${PATH_ROOT}strgen\Release\strgen.exe |
116 File ${PATH_ROOT}strgen\Release\strgen.exe |
117 |
117 |
118 |
118 |
119 ; Delete old files from the main dir. they are now placed in data/ and lang/ |
119 ; Delete old files from the main dir. they are now placed in data/ and lang/ |
120 Delete "$INSTDIR\*.lng" |
120 Delete "$INSTDIR\*.lng" |
210 ; Clean up OpenTTD dir |
210 ; Clean up OpenTTD dir |
211 Delete "$INSTDIR\changelog.txt" |
211 Delete "$INSTDIR\changelog.txt" |
212 Delete "$INSTDIR\readme.txt" |
212 Delete "$INSTDIR\readme.txt" |
213 Delete "$INSTDIR\openttd.exe" |
213 Delete "$INSTDIR\openttd.exe" |
214 Delete "$INSTDIR\strgen.exe" |
214 Delete "$INSTDIR\strgen.exe" |
215 Delete "$INSTDIR\data\ttd.map" |
215 Delete "$INSTDIR\COPYING" |
216 Delete "$INSTDIR\gpl.txt" |
|
217 Delete "$INSTDIR\INSTALL.LOG" |
216 Delete "$INSTDIR\INSTALL.LOG" |
218 Delete "$INSTDIR\crash.log" |
217 Delete "$INSTDIR\crash.log" |
219 Delete "$INSTDIR\openttd.cfg" |
218 Delete "$INSTDIR\openttd.cfg" |
220 |
219 |
221 ; Data files |
220 ; Data files |
222 Delete "$INSTDIR\data\opntitle.dat" |
221 Delete "$INSTDIR\data\opntitle.dat" |
223 Delete "$INSTDIR\data\signalsw.grf" |
222 Delete "$INSTDIR\data\signalsw.grf" |
224 Delete "$INSTDIR\data\openttd.grf" |
223 Delete "$INSTDIR\data\openttd.grf" |
225 Delete "$INSTDIR\data\canalsw.grf" |
224 Delete "$INSTDIR\data\canalsw.grf" |
|
225 Delete "$INSTDIR\data\trkfoundw.grf" |
226 Delete "$INSTDIR\data\trg1r.grf" |
226 Delete "$INSTDIR\data\trg1r.grf" |
227 Delete "$INSTDIR\data\trghr.grf" |
227 Delete "$INSTDIR\data\trghr.grf" |
228 Delete "$INSTDIR\data\trgtr.grf" |
228 Delete "$INSTDIR\data\trgtr.grf" |
229 Delete "$INSTDIR\data\sample.cat" |
229 Delete "$INSTDIR\data\sample.cat" |
230 Delete "$INSTDIR\data\trgcr.grf" |
230 Delete "$INSTDIR\data\trgcr.grf" |