"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/win32/WIN32-Prj/snort_installer.nsi" between
snort-2.9.16.1.tar.gz and snort-2.9.17.tar.gz

About: Snort is a network intrusion prevention and detection system (IDS/IPS) combining the benefits of signature, protocol and anomaly-based inspection.

snort_installer.nsi  (snort-2.9.16.1):snort_installer.nsi  (snort-2.9.17)
; $Id$ ; $Id$
; ;
; NSIS Installation script for Snort 2.9.16.1 Win32 ; NSIS Installation script for Snort 2.9.17 Win32
; Written by Chris Reid <chris.reid@codecraftconsultants.com> ; Written by Chris Reid <chris.reid@codecraftconsultants.com>
; Updated by Steven Sturges <ssturges@sourcefire.com> ; Updated by Steven Sturges <ssturges@sourcefire.com>
; ;
; This script will create a Win32 installer for Snort 2.9.16.1 (Win32 only). ; This script will create a Win32 installer for Snort 2.9.17 (Win32 only).
; For more information about NSIS, see their homepage: ; For more information about NSIS, see their homepage:
; http://nsis.sourceforge.net/ ; http://nsis.sourceforge.net/
; ;
; Note that this NSIS script is designed for NSIS version 2.09. ; Note that this NSIS script is designed for NSIS version 2.09.
; ;
Name "Snort 2.9.16.1" Name "Snort 2.9.17"
CRCCheck On CRCCheck On
!include "MUI.nsh" !include "MUI.nsh"
!define TEMP $R0 !define TEMP $R0
;-------------------------------- ;--------------------------------
;Configuration ;Configuration
;General ;General
OutFile "Snort_2_9_16_1_Installer.x86.exe" ; The name of the installer execut able OutFile "Snort_2.9.17_Installer.x86.exe" ; The name of the installer executab le
;Folder selection page ;Folder selection page
InstallDir "C:\Snort" InstallDir "C:\Snort"
;-------------------------------- ;--------------------------------
;Modern UI Configuration ;Modern UI Configuration
!define MUI_CUSTOMPAGECOMMANDS !define MUI_CUSTOMPAGECOMMANDS
!define MUI_LICENSEPAGE !define MUI_LICENSEPAGE
skipping to change at line 85 skipping to change at line 85
; the directory selection page ; the directory selection page
;!define MUI_CUSTOMFUNCTION_DIRECTORY_LEAVE onDirectoryLeave ;!define MUI_CUSTOMFUNCTION_DIRECTORY_LEAVE onDirectoryLeave
;-------------------------------- ;--------------------------------
; Event Handlers ; Event Handlers
Function .onInstSuccess Function .onInstSuccess
StrCpy $0 "Snort has successfully been installed.$\r$\n" StrCpy $0 "Snort has successfully been installed.$\r$\n"
StrCpy $0 "$0$\r$\n" StrCpy $0 "$0$\r$\n"
StrCpy $0 "$0$\r$\n" StrCpy $0 "$0$\r$\n"
StrCpy $0 "$0Snort also requires WinPcap 4.1.1 to be installed on this machine .$\r$\n" StrCpy $0 "$0Snort also requires WinPcap 4.1.1 or higher to be installed on th is machine.$\r$\n"
StrCpy $0 "$0WinPcap can be downloaded from:$\r$\n" StrCpy $0 "$0WinPcap can be downloaded from:$\r$\n"
StrCpy $0 "$0 http://www.winpcap.org/ $\r$\n" StrCpy $0 "$0 http://www.winpcap.org/ $\r$\n"
StrCpy $0 "$0$\r$\n" StrCpy $0 "$0$\r$\n"
StrCpy $0 "$0$\r$\n" StrCpy $0 "$0$\r$\n"
StrCpy $0 "$0It would also be wise to tighten the security on the Snort instal lation$\r$\n" StrCpy $0 "$0It would also be wise to tighten the security on the Snort instal lation$\r$\n"
StrCpy $0 "$0directory to prevent any malicious modification of the Snort exec utable.$\r$\n" StrCpy $0 "$0directory to prevent any malicious modification of the Snort exec utable.$\r$\n"
StrCpy $0 "$0$\r$\n" StrCpy $0 "$0$\r$\n"
StrCpy $0 "$0$\r$\n" StrCpy $0 "$0$\r$\n"
StrCpy $0 "$0Next, you must manually edit the 'snort.conf' file to$\r$\n" StrCpy $0 "$0Next, you must manually edit the 'snort.conf' file to$\r$\n"
StrCpy $0 "$0specify proper paths to allow Snort to find the rules files$\r$\n " StrCpy $0 "$0specify proper paths to allow Snort to find the rules files$\r$\n "
skipping to change at line 248 skipping to change at line 248
; Service. ; Service.
ReadRegStr $1 HKLM "Software\Snort" "CmdLineParamCount" ReadRegStr $1 HKLM "Software\Snort" "CmdLineParamCount"
StrCmp $1 "" service_not_registered StrCmp $1 "" service_not_registered
MessageBox MB_YESNO "It appears that Snort is registered as a Windows Servic e. Should it be unregistered now?" IDNO finished_unregistering_service MessageBox MB_YESNO "It appears that Snort is registered as a Windows Servic e. Should it be unregistered now?" IDNO finished_unregistering_service
ExecWait "net stop snortsvc" ExecWait "net stop snortsvc"
ExecWait "$INSTDIR\bin\snort.exe /SERVICE /UNINSTALL" ExecWait "$INSTDIR\bin\snort.exe /SERVICE /UNINSTALL"
GoTo finished_unregistering_service GoTo finished_unregistering_service
service_not_registered: service_not_registered:
MessageBox MB_OK "Snort not installed as a service" MessageBox MB_OK "Snort not installed as a service" /SD IDOK
finished_unregistering_service: finished_unregistering_service:
RMDir /r "$INSTDIR" RMDir /r "$INSTDIR"
;!insertmacro MUI_UNFINISHHEADER ;!insertmacro MUI_UNFINISHHEADER
SectionEnd SectionEnd
 End of changes. 6 change blocks. 
6 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)