Last modified 5 years ago Last modified on 02/01/10 19:09:09
:: Install WinPcap and default Ethereal package :: http://www.ethereal.com/distribution/win32/all-versions/ethereal-setup-0.10.11.exe :: http://www.winpcap.org/install/bin/WinPcap_3_0.exe :: :: author: Stephen Chao, stephens.cat@gmail.com :: NOTES/ :: - modify %etherealversion% and %pcapversion% to reflect the versions you're installing :: as well as the winpcap package name under in INSTALL_WINPCAP :: - if no previous versions exist, only INSTALL_WINPCAP and INSTALL_ETHEREAL needed :: - set %Z% to the path of the install packages :: - DOES NOT DEAL WITH EARLY WINPCAP UNINSTALL ISSUES @Echo off set etherealversion=0.10.11 set pcapversion=3.0 :DETECTWINPCAP if exist "%ProgramFiles%\WinPcap\rpcapd.exe" goto CHECKVERSION_WINPCAP goto INSTALL_WINPCAP :CHECKVERSION_WINPCAP start /w regedit /e "C:\WINDOWS\TEMP\reg.txt" HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\WinPcapInst find /i "%pcapversion%" "C:\WINDOWS\TEMP\reg.txt" IF ERRORLEVEL 0 goto DETECT_ETHEREAL "%ProgramFiles%\WinPcap\uninstall.exe" /s :INSTALL_WINPCAP "%Z%\winpcap_3_0_nogui.exe" :DETECT_ETHEREAL if exist "%ProgramFiles%\ethereal\ethereal.exe" goto CHECKVERSION_ETHEREAL goto INSTALL_ETHEREAL :CHECKVERSION_ETHEREAL if exist "%ProgramFiles%\ethereal\plugins\%etherealversion%" goto DONE :INSTALL_ETHEREAL "%Z%\ethereal-setup-%etherealversion%.exe" /S :DONE