Changeset 190 for trunk/windows
- Timestamp:
- 04/20/2009 10:41:27 AM (3 years ago)
- File:
-
- 1 edited
-
trunk/windows/windows_installer.nsi (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/windows/windows_installer.nsi
r103 r190 6 6 ; 7 7 ;-------------------------------- 8 !define version 1. 88 !define version 1.9 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 … … 64 64 ; Put file there 65 65 File "openyahtzee.exe" 66 File "mingwm10.dll"67 File "openyahtzee.exe.manifest"68 66 File "COPYING.txt" 69 67 File "ChangeLog.txt" 70 File "icon32.ico" 68 69 ; Copy the runtime dlls 70 SetOutPath "$INSTDIR\Microsoft.VC90.CRT" 71 File "Microsoft.VC90.CRT\*.dll" 72 File "Microsoft.VC90.CRT\*.manifest" 71 73 72 74 ; Write the installation path into the registry 73 WriteRegStr HKLM SOFTWARE\OpenYahtzee"Install_Dir" "$INSTDIR"75 WriteRegStr HKLM "Software\Open Yahtzee" "Install_Dir" "$INSTDIR" 74 76 75 77 ; 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" 178 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Open Yahtzee" "DisplayName" "Open Yahtzee" 79 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Open Yahtzee" "UninstallString" '"$INSTDIR\uninstall.exe"' 80 WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Open Yahtzee" "NoModify" 1 81 WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Open Yahtzee" "NoRepair" 1 80 82 WriteUninstaller "uninstall.exe" 81 83 … … 86 88 ; Remove old shortcuts, if any 87 89 Delete "$SMPROGRAMS\OpenYahtzee\*.*" 90 Delete "$SMPROGRAMS\Open Yahtzee\*.*" 88 91 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" 092 CreateDirectory "$SMPROGRAMS\Open Yahtzee" 93 CreateShortCut "$SMPROGRAMS\Open Yahtzee\Open Yahtzee.lnk" "$INSTDIR\openyahtzee.exe" "" "$INSTDIR\openyahtzee.exe" 0 94 CreateShortCut "$SMPROGRAMS\Open Yahtzee\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 92 95 93 96 SectionEnd … … 101 104 102 105 ;Language strings 103 LangString DESC_SecOpenYahtzee ${LANG_ENGLISH} "The Open Yahtzee game files and the required libraries."106 LangString DESC_SecOpenYahtzee ${LANG_ENGLISH} "The Open Yahtzee game files and the required libraries." 104 107 LangString DESC_SecStartMenu ${LANG_ENGLISH} "Create shortcuts in the Start menu" 105 108 … … 117 120 118 121 ; Remove registry keys 119 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Open Yahtzee"120 DeleteRegKey HKLM SOFTWARE\OpenYahtzee122 DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Open Yahtzee" 123 DeleteRegKey HKLM "SOFTWARE\Open Yahtzee" 121 124 122 125 ; Remove files and uninstaller 123 126 Delete "$INSTDIR\openyahtzee.exe" 127 Delete "$INSTDIR\COPYING.txt" 128 Delete "$INSTDIR\ChangeLog.txt" 129 Delete "$INSTDIR\uninstall.exe" 130 Delete "$INSTDIR\Microsoft.VC90.CRT\*.*" 131 ; Remove old files 124 132 Delete "$INSTDIR\openyahtzee.exe.manifest" 125 133 Delete "$INSTDIR\mingwm10.dll" 126 Delete "$INSTDIR\COPYING.txt"127 Delete "$INSTDIR\ChangeLog.txt"128 134 Delete "$INSTDIR\icon32.ico" 129 Delete "$INSTDIR\uninstall.exe" 135 136 RMDir "$INSTDIR\Microsoft.VC90.CRT" 130 137 Delete "$INSTDIR\*" 131 138 139 132 140 ; Remove shortcuts, if any 133 Delete "$SMPROGRAMS\Open Yahtzee\*.*"141 Delete "$SMPROGRAMS\Open Yahtzee\*.*" 134 142 135 143 ; Remove directories used 136 RMDir "$SMPROGRAMS\Open Yahtzee"144 RMDir "$SMPROGRAMS\Open Yahtzee" 137 145 RMDir "$INSTDIR" 138 146
Note: See TracChangeset
for help on using the changeset viewer.
