Added new installer (which includes some commented out sections
which can be used to customise text), and new logo. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14471 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
fb186d676c
commit
096c883552
@ -17,14 +17,14 @@
|
|||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Include Modern UI
|
;Include Modern UI
|
||||||
|
|
||||||
!include "MUI.nsh"
|
!include "MUI2.nsh"
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;General
|
;General
|
||||||
|
|
||||||
;Name and file
|
;Name and file
|
||||||
Name "SuperTuxKart for Windows"
|
Name "SuperTuxKart for Windows"
|
||||||
OutFile "supertuxkart-win.exe"
|
OutFile "supertuxkart.exe"
|
||||||
|
|
||||||
;Default installation folder
|
;Default installation folder
|
||||||
InstallDir "$PROGRAMFILES\SuperTuxKart"
|
InstallDir "$PROGRAMFILES\SuperTuxKart"
|
||||||
@ -38,6 +38,11 @@
|
|||||||
;Set the icon
|
;Set the icon
|
||||||
!define MUI_ICON "SuperTuxKart\install.ico"
|
!define MUI_ICON "SuperTuxKart\install.ico"
|
||||||
!define MUI_UNICON "SuperTuxKart\uninstall.ico"
|
!define MUI_UNICON "SuperTuxKart\uninstall.ico"
|
||||||
|
!define MUI_HEADERIMAGE
|
||||||
|
!define MUI_WELCOMEFINISHPAGE_BITMAP "supertuxkart\stk_installer.bmp"
|
||||||
|
!define MUI_HEADERIMAGE_BITMAP "supertuxkart\logo_slim.bmp"
|
||||||
|
;!define MUI_TEXT_INSTALLING_SUBTITLE "Please vote for SuperTuxKart to become SourceForge's Project of the month at vote.supertuxkart.net"
|
||||||
|
;!define MUI_TEXT_FINISH_INFO_TEXT "Please vote for SuperTuxKart to become $\"Project of the Month$\" at vote.supertuxkart.net"
|
||||||
|
|
||||||
;Sets the compressor to /SOLID lzma which when I tested was the best
|
;Sets the compressor to /SOLID lzma which when I tested was the best
|
||||||
SetCompressor /SOLID lzma
|
SetCompressor /SOLID lzma
|
||||||
@ -60,14 +65,14 @@
|
|||||||
Function validate_dir
|
Function validate_dir
|
||||||
IfFileExists $INSTDIR\data\*.* 0 return
|
IfFileExists $INSTDIR\data\*.* 0 return
|
||||||
IfFileExists $INSTDIR\Uninstall.exe 0 dont_uninstall
|
IfFileExists $INSTDIR\Uninstall.exe 0 dont_uninstall
|
||||||
MessageBox MB_YESNO "You can't install SuperTuxKart 0.8 in an existing directory. Do you wish to run the uninstaller in $INSTDIR?" IDNO dont_uninstall
|
MessageBox MB_YESNO "You can't install SuperTuxKart 0.8.1-rc1 in an existing directory. Do you wish to run the uninstaller in $INSTDIR?" IDNO dont_uninstall
|
||||||
; -?=$INSTDIR makes sure that this installer waits for the uninstaller
|
; -?=$INSTDIR makes sure that this installer waits for the uninstaller
|
||||||
; to finish. The uninstaller (and directory) are not removed, but the
|
; to finish. The uninstaller (and directory) are not removed, but the
|
||||||
; uninstaller will be overwritten by our installer anyway.
|
; uninstaller will be overwritten by our installer anyway.
|
||||||
ExecWait '"$INSTDIR\Uninstall.exe" _?=$INSTDIR'
|
ExecWait '"$INSTDIR\Uninstall.exe" _?=$INSTDIR'
|
||||||
goto return
|
goto return
|
||||||
dont_uninstall:
|
dont_uninstall:
|
||||||
MessageBox MB_OK "You can't install SuperTuxKart 0.8 in an existing directory. Please select a new directory."
|
MessageBox MB_OK "You can't install SuperTuxKart 0.8.1-rc1 in an existing directory. Please select a new directory."
|
||||||
abort
|
abort
|
||||||
return:
|
return:
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
@ -88,6 +93,8 @@ FunctionEnd
|
|||||||
!insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER
|
!insertmacro MUI_PAGE_STARTMENU Application $STARTMENU_FOLDER
|
||||||
|
|
||||||
!insertmacro MUI_PAGE_INSTFILES
|
!insertmacro MUI_PAGE_INSTFILES
|
||||||
|
;!define MUI_FINISHPAGE_LINK "Please vote for SuperTuxkart here"
|
||||||
|
;!define MUI_FINISHPAGE_LINK_LOCATION "http://vote.supertuxkart.net"
|
||||||
!insertmacro MUI_PAGE_FINISH
|
!insertmacro MUI_PAGE_FINISH
|
||||||
|
|
||||||
|
|
||||||
@ -103,6 +110,12 @@ FunctionEnd
|
|||||||
!insertmacro MUI_LANGUAGE "English"
|
!insertmacro MUI_LANGUAGE "English"
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
|
function ChangeFont
|
||||||
|
CreateFont $0 "$(^Font)" "20" "700"
|
||||||
|
SendMessage $mui.Line.Standard ${WM_SETFONT} $0 0
|
||||||
|
functionend
|
||||||
|
|
||||||
|
|
||||||
;Installer Sections
|
;Installer Sections
|
||||||
|
|
||||||
Section "Main Section" SecMain
|
Section "Main Section" SecMain
|
||||||
|
BIN
src/windows_installer/supertuxkart/stk_installer.bmp
Normal file
BIN
src/windows_installer/supertuxkart/stk_installer.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 519 KiB |
Loading…
Reference in New Issue
Block a user