79 !define MUI_FINISHPAGE_LINK "Visit the OpenTTD site for latest news, FAQs and downloads" |
79 !define MUI_FINISHPAGE_LINK "Visit the OpenTTD site for latest news, FAQs and downloads" |
80 !define MUI_FINISHPAGE_LINK_LOCATION "${APPURLLINK}" |
80 !define MUI_FINISHPAGE_LINK_LOCATION "${APPURLLINK}" |
81 !define MUI_FINISHPAGE_NOREBOOTSUPPORT |
81 !define MUI_FINISHPAGE_NOREBOOTSUPPORT |
82 !define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\readme.txt" |
82 !define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\readme.txt" |
83 !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED |
83 !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED |
|
84 !define MUI_WELCOMEFINISHPAGE_CUSTOMFUNCTION_INIT DisableBack |
84 |
85 |
85 !insertmacro MUI_PAGE_FINISH |
86 !insertmacro MUI_PAGE_FINISH |
86 !insertmacro MUI_UNPAGE_CONFIRM |
87 !insertmacro MUI_UNPAGE_CONFIRM |
87 !insertmacro MUI_UNPAGE_INSTFILES |
88 !insertmacro MUI_UNPAGE_INSTFILES |
88 |
89 |
353 MessageBox MB_OK "Setup cannot continue without the Transport Tycoon Deluxe Location!" |
354 MessageBox MB_OK "Setup cannot continue without the Transport Tycoon Deluxe Location!" |
354 Abort |
355 Abort |
355 hasCD: |
356 hasCD: |
356 FunctionEnd |
357 FunctionEnd |
357 |
358 |
358 ;--------------------------------------------------------------------- |
359 ;---------------------------------------------------------------------------------- |
359 ; Custom page function to show notices for running OpenTTD |
360 ; Disable the "Back" button on finish page if the installer is run on Win9x systems |
|
361 Function DisableBack |
|
362 Call GetWindowsVersion |
|
363 Pop $R0 |
|
364 StrCmp $R0 "win9x" 0 WinNT |
|
365 !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Settings" "BackEnabled" "0" |
|
366 WinNT: |
|
367 ClearErrors |
|
368 FunctionEnd |
|
369 |
|
370 ;---------------------------------------------------------------------------------- |
|
371 ; Custom page function to show notices for running OpenTTD (only for win32 systems) |
360 ; We have extracted this custom page as Notice in the .onInit function |
372 ; We have extracted this custom page as Notice in the .onInit function |
361 Function ShowWarningsPage |
373 Function ShowWarningsPage |
|
374 Call GetWindowsVersion |
|
375 Pop $R0 |
|
376 ; Don't show the UNICODE notice if the installer is run on Win9x systems |
|
377 StrCmp $R0 "win9x" 0 WinNT |
|
378 Abort |
|
379 WinNT: |
362 !insertmacro MUI_HEADER_TEXT "Installation Complete" "Important notices for OpenTTD usage." |
380 !insertmacro MUI_HEADER_TEXT "Installation Complete" "Important notices for OpenTTD usage." |
363 !insertmacro MUI_INSTALLOPTIONS_EXTRACT_AS "notice.ini" "Notice" |
381 !insertmacro MUI_INSTALLOPTIONS_EXTRACT_AS "notice.ini" "Notice" |
364 !insertmacro MUI_INSTALLOPTIONS_INITDIALOG "Notice" |
382 !insertmacro MUI_INSTALLOPTIONS_INITDIALOG "Notice" |
365 |
|
366 Call GetWindowsVersion |
|
367 Pop $R0 |
|
368 |
|
369 ; Hide the MSLU text if the installer is not run on Win9x systems |
|
370 StrCmp $R0 "winnt" 0 Win9x |
|
371 !insertmacro MUI_INSTALLOPTIONS_READ $R1 "Notice" "Field 1" "HWND" ; MSLU groupbox |
|
372 ShowWindow $R1 0 |
|
373 !insertmacro MUI_INSTALLOPTIONS_READ $R1 "Notice" "Field 2" "HWND" ; MSLU text |
|
374 ShowWindow $R1 0 |
|
375 !insertmacro MUI_INSTALLOPTIONS_READ $R1 "Notice" "Field 3" "HWND" ; MSLU link |
|
376 ShowWindow $R1 0 |
|
377 Win9x: |
|
378 ClearErrors |
383 ClearErrors |
379 !insertmacro MUI_INSTALLOPTIONS_SHOW |
384 !insertmacro MUI_INSTALLOPTIONS_SHOW |
380 FunctionEnd |
385 FunctionEnd |
381 |
386 |
382 ;------------------------------------------------------------------------------- |
387 ;------------------------------------------------------------------------------- |