version 1.1 | | version 1.2 |
---|
| | |
!include "MUI.nsh" | | !include "MUI.nsh" |
| | |
;Title Of Your Application | | ;Title Of Your Application |
Name "Crossfire Server 1.6.1" | | Name "Crossfire Server (snapshot 2004-11-29)"
|
| | |
;Do A CRC Check | | ;Do A CRC Check |
CRCCheck On | | CRCCheck On |
| | |
SetOverwrite IfNewer | | SetOverwrite IfNewer |
File "ReleaseLog\crossfire32.exe" | | File "ReleaseLog\crossfire32.exe" |
File "Release_notes.txt" | | File "Release_notes.txt" |
| | File /oname=Changelog.rtf "..\changelog"
|
SetOutPath $INSTDIR\share | | SetOutPath $INSTDIR\share |
File "..\lib\archetypes" | | File "..\lib\archetypes" |
File "..\lib\artifacts" | | File "..\lib\artifacts" |
| | |
CreateDirectory "$SMPROGRAMS\Crossfire Server" | | CreateDirectory "$SMPROGRAMS\Crossfire Server" |
CreateShortCut "$SMPROGRAMS\Crossfire Server\Crossfire Server.lnk" "$INSTDIR\crossfire32.exe" "" "$INSTDIR\crossfire32.exe" 0 | | CreateShortCut "$SMPROGRAMS\Crossfire Server\Crossfire Server.lnk" "$INSTDIR\crossfire32.exe" "" "$INSTDIR\crossfire32.exe" 0 |
CreateShortCut "$SMPROGRAMS\Crossfire Server\Release notes.lnk" "$INSTDIR\Release_notes.txt" | | CreateShortCut "$SMPROGRAMS\Crossfire Server\Release notes.lnk" "$INSTDIR\Release_notes.txt" |
| | CreateShortCut "$SMPROGRAMS\Crossfire Server\Changelog.lnk" "$INSTDIR\Changelog.rtf"
|
CreateShortCut "$SMPROGRAMS\Crossfire Server\Uninstall.lnk" "$INSTDIR\uninst.exe" "" "$INSTDIR\uninst.exe" 0 | | CreateShortCut "$SMPROGRAMS\Crossfire Server\Uninstall.lnk" "$INSTDIR\uninst.exe" "" "$INSTDIR\uninst.exe" 0 |
SectionEnd | | SectionEnd |
| | |
| | |
SectionIn RO | | SectionIn RO |
;Delete Files | | ;Delete Files |
Delete "$INSTDIR\crossfire32.exe" | | Delete "$INSTDIR\crossfire32.exe" |
| | Delete "$INSTDIR\Changelog.rtf"
|
Delete "$INSTDIR\Share\plugins\python21.dll" | | Delete "$INSTDIR\Share\plugins\python21.dll" |
Delete "$INSTDIR\Release_notes.txt" | | Delete "$INSTDIR\Release_notes.txt" |
Delete "$INSTDIR\Share\treasures" | | Delete "$INSTDIR\Share\treasures" |
| | |
;Remove 'temp' directory | | ;Remove 'temp' directory |
rmdir /r "$INSTDIR\tmp" | | rmdir /r "$INSTDIR\tmp" |
| | |
| | ;Remove some data files
|
| | Delete "$INSTDIR\Var\clockdata"
|
| | Delete "$INSTDIR\Var\crossfire.log"
|
| | Delete "$INSTDIR\Var\crossfiremail"
|
| |
|
;Delete Start Menu Shortcuts | | ;Delete Start Menu Shortcuts |
RmDir /r "$SMPROGRAMS\Crossfire Server" | | RmDir /r "$SMPROGRAMS\Crossfire Server" |
| | |