Ignore:
Timestamp:
19/01/08 09:33:24 (6 years ago)
Author:
guyru
Message:
  • Updated ChangeLOg
  • Updated NSIS installer scripts
  • Updated copyright years in the about dialog.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/openyahtzee-1.8/windows/windows_installer.nsi

    r103 r147  
    66;  
    77;-------------------------------- 
    8 !define version 1.8 
     8!define version 1.8.1 
    99;-------------------------------- 
    1010;Include Modern UI 
    1111 
    12   !include "MUI.nsh" 
     12  !include "MUI2.nsh" 
    1313 
    1414;-------------------------------- 
    1515 
    1616; The name of the installer 
    17 Name "OpenYahtzee ${version}" 
     17Name "Open Yahtzee ${version}" 
    1818 
    1919; The file to write 
    20 OutFile "OpenYahtzee-${version}.exe" 
     20OutFile "openyahtzee-${version}.exe" 
    2121 
    2222; The default installation directory 
    23 InstallDir $PROGRAMFILES\OpenYahtzee 
     23InstallDir "$PROGRAMFILES\Open Yahtzee" 
    2424 
    2525;hides details of the install and uninstall but allows the users to see them if he wants 
     
    2929; Registry key to check for directory (so if you install again, it will  
    3030; overwrite the old one automatically) 
    31 InstallDirRegKey HKLM "Software\OpenYahtzee" "Install_Dir" 
     31InstallDirRegKey HKLM "Software\Open Yahtzee" "Install_Dir" 
    3232 
    3333; set the icon for installer 
     
    5555 
    5656; The stuff to install 
    57 Section "OpenYahtzee-${version} (required)" SecOpenYahtzee 
     57Section "Open Yahtzee-${version} (required)" SecOpenYahtzee 
    5858 
    5959  SectionIn RO 
     
    7171   
    7272  ; Write the installation path into the registry 
    73   WriteRegStr HKLM SOFTWARE\OpenYahtzee "Install_Dir" "$INSTDIR" 
     73  WriteRegStr HKLM "Software\Open Yahtzee" "Install_Dir" "$INSTDIR" 
    7474   
    7575  ; Write the uninstall keys for Windows 
    76   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenYahtzee" "DisplayName" "OpenYahtzee" 
    77   WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenYahtzee" "UninstallString" '"$INSTDIR\uninstall.exe"' 
    78   WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenYahtzee" "NoModify" 1 
    79   WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenYahtzee" "NoRepair" 1 
     76  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Open Yahtzee" "DisplayName" "Open Yahtzee" 
     77  WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Open Yahtzee" "UninstallString" '"$INSTDIR\uninstall.exe"' 
     78  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Open Yahtzee" "NoModify" 1 
     79  WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Open Yahtzee" "NoRepair" 1 
    8080  WriteUninstaller "uninstall.exe" 
    8181   
     
    8686  ; Remove old shortcuts, if any 
    8787  Delete "$SMPROGRAMS\OpenYahtzee\*.*" 
     88  Delete "$SMPROGRAMS\Open Yahtzee\*.*" 
    8889 
    89   CreateDirectory "$SMPROGRAMS\OpenYahtzee" 
    90   CreateShortCut "$SMPROGRAMS\OpenYahtzee\OpenYahtzee.lnk" "$INSTDIR\openyahtzee.exe" "" "$INSTDIR\icon32.ico" 0 
    91   CreateShortCut "$SMPROGRAMS\OpenYahtzee\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 
     90  CreateDirectory "$SMPROGRAMS\Open Yahtzee" 
     91  CreateShortCut "$SMPROGRAMS\Open Yahtzee\Open Yahtzee.lnk" "$INSTDIR\openyahtzee.exe" "" "$INSTDIR\icon32.ico" 0 
     92  CreateShortCut "$SMPROGRAMS\Open Yahtzee\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 
    9293   
    9394SectionEnd 
     
    101102 
    102103  ;Language strings 
    103   LangString DESC_SecOpenYahtzee ${LANG_ENGLISH} "The OpenYahtzee game files and the required libraries." 
     104  LangString DESC_SecOpenYahtzee ${LANG_ENGLISH} "The Open Yahtzee game files and the required libraries." 
    104105  LangString DESC_SecStartMenu ${LANG_ENGLISH} "Create shortcuts in the Start menu" 
    105106 
     
    117118   
    118119  ; Remove registry keys 
    119   DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenYahtzee" 
    120   DeleteRegKey HKLM SOFTWARE\OpenYahtzee 
     120  DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Open Yahtzee" 
     121  DeleteRegKey HKLM "SOFTWARE\Open Yahtzee" 
    121122 
    122123  ; Remove files and uninstaller 
     
    131132 
    132133  ; Remove shortcuts, if any 
    133   Delete "$SMPROGRAMS\OpenYahtzee\*.*" 
     134  Delete "$SMPROGRAMS\Open Yahtzee\*.*" 
    134135 
    135136  ; Remove directories used 
    136   RMDir "$SMPROGRAMS\OpenYahtzee" 
     137  RMDir "$SMPROGRAMS\Open Yahtzee" 
    137138  RMDir "$INSTDIR" 
    138139 
Note: See TracChangeset for help on using the changeset viewer.