Changeset 147 for branches/openyahtzee-1.8/windows/windows_installer.nsi
- Timestamp:
- 19/01/08 09:33:24 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/openyahtzee-1.8/windows/windows_installer.nsi
r103 r147 6 6 ; 7 7 ;-------------------------------- 8 !define version 1.8 8 !define version 1.8.1 9 9 ;-------------------------------- 10 10 ;Include Modern UI 11 11 12 !include "MUI .nsh"12 !include "MUI2.nsh" 13 13 14 14 ;-------------------------------- 15 15 16 16 ; The name of the installer 17 Name "Open Yahtzee ${version}"17 Name "Open Yahtzee ${version}" 18 18 19 19 ; The file to write 20 OutFile " OpenYahtzee-${version}.exe"20 OutFile "openyahtzee-${version}.exe" 21 21 22 22 ; The default installation directory 23 InstallDir $PROGRAMFILES\OpenYahtzee23 InstallDir "$PROGRAMFILES\Open Yahtzee" 24 24 25 25 ;hides details of the install and uninstall but allows the users to see them if he wants … … 29 29 ; Registry key to check for directory (so if you install again, it will 30 30 ; overwrite the old one automatically) 31 InstallDirRegKey HKLM "Software\Open Yahtzee" "Install_Dir"31 InstallDirRegKey HKLM "Software\Open Yahtzee" "Install_Dir" 32 32 33 33 ; set the icon for installer … … 55 55 56 56 ; The stuff to install 57 Section "Open Yahtzee-${version} (required)" SecOpenYahtzee57 Section "Open Yahtzee-${version} (required)" SecOpenYahtzee 58 58 59 59 SectionIn RO … … 71 71 72 72 ; Write the installation path into the registry 73 WriteRegStr HKLM SOFTWARE\OpenYahtzee"Install_Dir" "$INSTDIR"73 WriteRegStr HKLM "Software\Open Yahtzee" "Install_Dir" "$INSTDIR" 74 74 75 75 ; Write the uninstall keys for Windows 76 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Open Yahtzee" "DisplayName" "OpenYahtzee"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" 179 WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Open Yahtzee" "NoRepair" 176 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 80 80 WriteUninstaller "uninstall.exe" 81 81 … … 86 86 ; Remove old shortcuts, if any 87 87 Delete "$SMPROGRAMS\OpenYahtzee\*.*" 88 Delete "$SMPROGRAMS\Open Yahtzee\*.*" 88 89 89 CreateDirectory "$SMPROGRAMS\Open Yahtzee"90 CreateShortCut "$SMPROGRAMS\Open Yahtzee\OpenYahtzee.lnk" "$INSTDIR\openyahtzee.exe" "" "$INSTDIR\icon32.ico" 091 CreateShortCut "$SMPROGRAMS\Open Yahtzee\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 090 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 92 93 93 94 SectionEnd … … 101 102 102 103 ;Language strings 103 LangString DESC_SecOpenYahtzee ${LANG_ENGLISH} "The Open Yahtzee game files and the required libraries."104 LangString DESC_SecOpenYahtzee ${LANG_ENGLISH} "The Open Yahtzee game files and the required libraries." 104 105 LangString DESC_SecStartMenu ${LANG_ENGLISH} "Create shortcuts in the Start menu" 105 106 … … 117 118 118 119 ; Remove registry keys 119 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Open Yahtzee"120 DeleteRegKey HKLM SOFTWARE\OpenYahtzee120 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Open Yahtzee" 121 DeleteRegKey HKLM "SOFTWARE\Open Yahtzee" 121 122 122 123 ; Remove files and uninstaller … … 131 132 132 133 ; Remove shortcuts, if any 133 Delete "$SMPROGRAMS\Open Yahtzee\*.*"134 Delete "$SMPROGRAMS\Open Yahtzee\*.*" 134 135 135 136 ; Remove directories used 136 RMDir "$SMPROGRAMS\Open Yahtzee"137 RMDir "$SMPROGRAMS\Open Yahtzee" 137 138 RMDir "$INSTDIR" 138 139
Note: See TracChangeset
for help on using the changeset viewer.
