Changeset 27 for trunk


Ignore:
Timestamp:
19/12/06 11:36:59 (6 years ago)
Author:
guyru
Message:

updated installer to Modern UI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/OpenYahtzee/windows_installer.nsi

    r26 r27  
    77;-------------------------------- 
    88 
     9;-------------------------------- 
     10;Include Modern UI 
     11 
     12  !include "MUI.nsh" 
     13 
     14;-------------------------------- 
     15 
    916; The name of the installer 
    10 Name "Open Yahtzee 1.5.1" 
     17Name "OpenYahtzee 1.5.1" 
    1118 
    1219; The file to write 
     
    2431InstallDirRegKey HKLM "Software\OpenYahtzee" "Install_Dir" 
    2532 
    26 ;make the installer controls use the new XP style when running on Windows XP 
    27 XPStyle on 
     33;-------------------------------- 
     34;Interface Settings 
    2835 
    29 ;set the license 
    30 LicenseData COPYING.txt 
     36  !define MUI_ABORTWARNING 
    3137 
    3238;-------------------------------- 
     39;Pages 
    3340 
    34 ; Pages 
    35  
    36 Page license 
    37 Page components 
    38 Page directory 
    39 Page instfiles 
    40 UninstPage uninstConfirm 
    41 UninstPage instfiles 
    42  
    43  
     41  !insertmacro MUI_PAGE_LICENSE "COPYING.txt" 
     42  !insertmacro MUI_PAGE_COMPONENTS 
     43  !insertmacro MUI_PAGE_DIRECTORY 
     44  !insertmacro MUI_PAGE_INSTFILES 
     45   
     46  !insertmacro MUI_UNPAGE_CONFIRM 
     47  !insertmacro MUI_UNPAGE_INSTFILES 
     48   
    4449;-------------------------------- 
    4550 
    4651; The stuff to install 
    47 Section "OpenYahtzee-1.5.1 (required)" 
     52Section "OpenYahtzee-1.5.1 (required)" SecOpenYahtzee 
    4853 
    4954  SectionIn RO 
     
    7378 
    7479; Optional section (can be disabled by the user) 
    75 Section "Start Menu Shortcuts" 
     80Section "Start Menu Shortcuts" SecStartMenu 
    7681 
    7782  CreateDirectory "$SMPROGRAMS\OpenYahtzee" 
     
    8085   
    8186SectionEnd 
     87;-------------------------------- 
     88;Languages 
     89  
     90  !insertmacro MUI_LANGUAGE "English" 
     91 
     92;-------------------------------- 
     93;Descriptions 
     94 
     95  ;Language strings 
     96  LangString DESC_SecOpenYahtzee ${LANG_ENGLISH} "The OpenYahtzee game files and the required libraries." 
     97  LangString DESC_SecStartMenu ${LANG_ENGLISH} "Create shortcuts in the Start menu" 
     98 
     99  ;Assign language strings to sections 
     100  !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN 
     101    !insertmacro MUI_DESCRIPTION_TEXT ${SecOpenYahtzee} $(DESC_SecOpenYahtzee) 
     102    !insertmacro MUI_DESCRIPTION_TEXT ${SecStartMenu} $(DESC_SecStartMenu) 
     103  !insertmacro MUI_FUNCTION_DESCRIPTION_END 
    82104 
    83105;-------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.