added et:l to firewall exception list, clean up

This commit is contained in:
Remy Marquis 2013-11-18 20:47:27 +01:00
parent a40876b595
commit d77c023bc6

View file

@ -1,11 +1,12 @@
; ------------------------ ; ------------------------
; ET:Legacy NSIS installer ; ET:Legacy NSIS installer
; ------------------------ ; ------------------------
; Before running NSIS, ensure to ; Before running NSIS, ensure to add in the current folder:
; - add NSIS zip plug-in in the current folder (http://nsis.sourceforge.net/ZipDLL_plug-in) ; - the NSIS zip plug-in (http://nsis.sourceforge.net/ZipDLL_plug-in)
; - add NSIS md5 plug-in (ANSI) in the current folder (http://nsis.sourceforge.net/MD5_plugin) ; - the NSIS md5 plug-in (ANSI) (http://nsis.sourceforge.net/MD5_plugin)
; - add ET:Legacy binary files in a ."/etlegacy-windows-${VERSION}" subfolder without Omni-bot files. ; - the NSIS simple firewall plug-in (http://nsis.sourceforge.net/NSIS_Simple_Firewall_Plugin)
; - change the version number below. You don't need to change anything else. ; - the ET:Legacy binary files in a ."/etlegacy-windows-${VERSION}" subfolder without Omni-bot files.
; Change the version number below. You don't need to change anything else.
!define VERSION "2.71rc3" !define VERSION "2.71rc3"
@ -69,6 +70,8 @@ Section "Enemy Territory: Legacy" FILES
SetOverwrite ifnewer SetOverwrite ifnewer
SetOutPath $INSTDIR SetOutPath $INSTDIR
File /r "etlegacy-windows-${VERSION}\*.*" File /r "etlegacy-windows-${VERSION}\*.*"
SimpleFC::AddApplication "ET:Legacy" "$INSTDIR\etl.exe" 0 2 "" 1
SimpleFC::AddApplication "ET:Legacy server" "$INSTDIR\etlded.exe" 0 2 "" 1
SectionEnd SectionEnd
Section "Wolfenstein: Enemy Territory assets" ASSETS Section "Wolfenstein: Enemy Territory assets" ASSETS
@ -136,9 +139,9 @@ Section "Wolfenstein: Enemy Territory assets" ASSETS
GOTO UNPACK_INSTALL GOTO UNPACK_INSTALL
${Else} ${Else}
Delete "$TEMP\WolfET.exe" Delete "$TEMP\WolfET.exe"
${EndIf}
MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "Integrity Error: Installer MD5 checksum failed." \ MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "Integrity Error: Installer MD5 checksum failed." \
IDCANCEL USERCANCEL IDRETRY GET_INSTALL IDCANCEL USERCANCEL IDRETRY GET_INSTALL
${EndIf}
UNPACK_INSTALL: UNPACK_INSTALL:
MessageBox MB_ICONINFORMATION|MB_OK "During extraction of W:ET assets the screen will get black for a few seconds." MessageBox MB_ICONINFORMATION|MB_OK "During extraction of W:ET assets the screen will get black for a few seconds."
@ -171,9 +174,9 @@ Section "Wolfenstein: Enemy Territory assets" ASSETS
GOTO UNPACK_PATCH GOTO UNPACK_PATCH
${Else} ${Else}
Delete "$TEMP\ET_Patch_2_60.exe" Delete "$TEMP\ET_Patch_2_60.exe"
${EndIf}
MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "Integrity Error: Patch MD5 checksum failed." \ MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "Integrity Error: Patch MD5 checksum failed." \
IDCANCEL USERCANCEL IDRETRY GET_PATCH IDCANCEL USERCANCEL IDRETRY GET_PATCH
${EndIf}
UNPACK_PATCH: UNPACK_PATCH:
ExecWait "$TEMP\ET_Patch_2_60.exe /x $TEMP\etl_install" ExecWait "$TEMP\ET_Patch_2_60.exe /x $TEMP\etl_install"
@ -297,6 +300,8 @@ Section "un.ET:Legacy" UNFILES
DeleteRegKey HKCR "et" DeleteRegKey HKCR "et"
RMDir /r "$SMPROGRAMS\Enemy Territory - Legacy" RMDir /r "$SMPROGRAMS\Enemy Territory - Legacy"
Delete "$DESKTOP\ET-Legacy.lnk" Delete "$DESKTOP\ET-Legacy.lnk"
SimpleFC::RemoveApplication "$INSTDIR\etl.exe"
SimpleFC::RemoveApplication "$INSTDIR\etlded.exe"
SectionEnd SectionEnd
Section /o "un.Wolf:ET assets" UNASSETS Section /o "un.Wolf:ET assets" UNASSETS