diff options
author | rubidium <rubidium@openttd.org> | 2007-05-29 19:01:38 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-29 19:01:38 +0000 |
commit | c23228af8c34666c4d20eddb998f5ea4b3b8c1ac (patch) | |
tree | 7e36c5470226f2bd134dca6b76b5dc1897de74c3 /os/win32/installer/install.nsi | |
parent | 902b2a1d585af324845151833e75821db8eed36d (diff) | |
download | openttd-c23228af8c34666c4d20eddb998f5ea4b3b8c1ac.tar.xz |
(svn r9980) -Merge: Windows Installer changes in 0.5 (r9864).
Diffstat (limited to 'os/win32/installer/install.nsi')
-rw-r--r-- | os/win32/installer/install.nsi | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/os/win32/installer/install.nsi b/os/win32/installer/install.nsi index 15bbedafd..b0698d4be 100644 --- a/os/win32/installer/install.nsi +++ b/os/win32/installer/install.nsi @@ -81,6 +81,7 @@ Page custom ShowWarningsPage !define MUI_FINISHPAGE_NOREBOOTSUPPORT !define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\readme.txt" !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED +!define MUI_WELCOMEFINISHPAGE_CUSTOMFUNCTION_INIT DisableBack !insertmacro MUI_PAGE_FINISH !insertmacro MUI_UNPAGE_CONFIRM @@ -355,26 +356,30 @@ NoCD: hasCD: FunctionEnd -;--------------------------------------------------------------------- -; Custom page function to show notices for running OpenTTD +;---------------------------------------------------------------------------------- +; Disable the "Back" button on finish page if the installer is run on Win9x systems +Function DisableBack + Call GetWindowsVersion + Pop $R0 + StrCmp $R0 "win9x" 0 WinNT + !insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Settings" "BackEnabled" "0" +WinNT: + ClearErrors +FunctionEnd + +;---------------------------------------------------------------------------------- +; Custom page function to show notices for running OpenTTD (only for win32 systems) ; We have extracted this custom page as Notice in the .onInit function Function ShowWarningsPage + Call GetWindowsVersion + Pop $R0 + ; Don't show the UNICODE notice if the installer is run on Win9x systems + StrCmp $R0 "win9x" 0 WinNT + Abort +WinNT: !insertmacro MUI_HEADER_TEXT "Installation Complete" "Important notices for OpenTTD usage." !insertmacro MUI_INSTALLOPTIONS_EXTRACT_AS "notice.ini" "Notice" !insertmacro MUI_INSTALLOPTIONS_INITDIALOG "Notice" - - Call GetWindowsVersion - Pop $R0 - - ; Hide the MSLU text if the installer is not run on Win9x systems - StrCmp $R0 "winnt" 0 Win9x - !insertmacro MUI_INSTALLOPTIONS_READ $R1 "Notice" "Field 1" "HWND" ; MSLU groupbox - ShowWindow $R1 0 - !insertmacro MUI_INSTALLOPTIONS_READ $R1 "Notice" "Field 2" "HWND" ; MSLU text - ShowWindow $R1 0 - !insertmacro MUI_INSTALLOPTIONS_READ $R1 "Notice" "Field 3" "HWND" ; MSLU link - ShowWindow $R1 0 -Win9x: ClearErrors !insertmacro MUI_INSTALLOPTIONS_SHOW FunctionEnd |