Rem *** This UO Security script is licensed under the GPL http://www.gnu.org/licenses/gpl.txt Rem *** Free to use, intended to remain free. Please credit the source. Rem Primary Development by Dan Albrich (dalbrich@uoregon.edu) Rem Lots of help from other Computing Center staff, especially including Spencer Smith, Patrick Chinn, and Jon Miyake Rem *** Update this when static includes get updated Rem *** This date is includes date, minus one day. Set Variable INCLUDESDATE to 10/01/2005 10:15:28 Set Variable EUDORAVERSIONONCD to 6.2.3 Set Variable FIREFOXVERSIONONCD to 1.0.7 Set Variable SPYBOTVERSIONONCD to 1.4 If File or Directory exists %INST%\version.txt then Read lines of file %INST%\version.txt into variable LINE Start Block End Parse String "%LINE%" into APPTITLE and MOREINFO Parse String "%MOREINFO%" into THESEDEFS and MOREINFO Parse String "%MOREINFO%" into MOREINFO and EXPMONTH End Display Progress Message "%APPTITLE% Starting..." Set Variable EXPYEAR to 05 Set Variable BOOTDRIVEA to %WIN% Parse String "%BOOTDRIVEA%" into CDRIVE and IGNORE If CDRIVE Does Not Contain ":" then Set Variable CDRIVE to C: End Get System Information into SYSTEMTIME Set Variable VERSIONDATA to %APPTITLE%, %SYSTEMTIME% Install File C:\Network Software\Product\sv\message0405.txt to %cdrive%\NET\sec_cd\message0405.txt Insert line "%VERSIONDATA%" into text file %cdrive%\NET\sec_cd\message0405.txt. If Directory not writable %SYS% then Set Variable SYS to %WIN% End Set Variable WINHOSTPATH to Rem FF Make sure if none, won't be less than current version Set Variable FIREFOXVERSION to 999 Set Variable SYSHOSTPATH to Set Variable KB899588 to 0 Set Variable WINHOSTSIZE to Set Variable SYSHOSTSIZE to Set Variable ANYHOSTFILE to N If File or Directory exists %win%\hosts then Rem Win98 systems don't come with hosts file... Get System Information into WINHOSTSIZE Set Variable WINHOSTPATH to %win%\hosts Set Variable ANYHOSTFILE to Y End If File or Directory exists %sys%\drivers\etc\hosts then Get System Information into SYSHOSTSIZE Set Variable SYSHOSTPATH to %sys%\drivers\etc\hosts Rem XP/2K always have a 734 byte host file If SYSHOSTSIZE Not Equal "734" then Set Variable ANYHOSTFILE to Y End End Set Variable COMPONENTS to A Set Variable DTEMP1 to %TEMP% Set Variable DTEMP2 to %CDRIVE%\Windows\Temp Set Variable LEFT to Set Variable HOUR to Set Variable INSTALLFIREFOX to Y If File or Directory exists %cdrive%\Program Files\Netscape\Netscape\Netscp.exe then Set Variable INSTALLFIREFOX to N End If File or Directory exists %cdrive%\Program Files\Mozilla Firefox\firefox.exe then Set Variable INSTALLFIREFOX to N Get System Information into FIREFOXVERSION End If File or Directory exists %cdrive%\Program Files\mozilla.org\Mozilla\mozilla.exe then Set Variable INSTALLFIREFOX to N End If File or Directory exists %cdrive%\Program Files\Opera\Opera.exe then Set Variable INSTALLFIREFOX to N End Set Variable NONIEBROWSER to N If INSTALLFIREFOX Equals "N" then Set Variable NONIEBROWSER to Y End Set Variable AVCOUNT to 0 Set Variable NORTONCOUNT to 0 Set Variable AVCUMULATIVE to Set Variable RIGHT to Set Variable VIRUSDEFVERNO to Set Variable SEENDOC to N Set Variable IE_VERSION to Set Variable INFECTEDSTATUS to Set Variable AVSOFT to Set Variable INSTALLNORTON to Y Set Variable INSTALLSSH to Y Set Variable CROOT to C:\ Set Variable WUPDATERUN to N Set Variable DETECTWORM to N Set Variable EXITFILEFOLDER to N Set Variable PATCHESNEEDED to 0 Set Variable EXITQUIET to N Set Variable LIVEUPDATE to N Set Variable SYSTEM32SCAN to N Set Variable SSHVER to Set Variable IGNORE to Set Variable SP2REBOOT to N Set Variable NAVSCAN to Y Set Variable MCAFEE to N Set Variable SOBIGF to N Set Variable SVCHOST to Set Variable UPDATEDEFS to N Set Variable ADDUTIL to Set Variable DISABLED to ! Set Variable GROUP to Network Applications Set Variable DISK_STATUS to Rem NARST - Restart variable i.e. if IPTV/IE/NETSCAPE Set Variable NARST to N Set Variable CE7 to N Set Variable CE8 to N Set Variable WINVERSION to Set Variable SPACKNO to Set Variable WELCHIA to N Set Variable ANYWORM to N Set Variable LOCAL_DRIVE to \ Set Variable KERMIT95 to Set Variable BOOTDRIVEA to %WIN% Parse String "%BOOTDRIVEA%" into CDRIVE and IGNORE If CDRIVE Does Not Contain ":" then Set Variable CDRIVE to C: End Rem MESSAGE0405 If File or Directory exists %cdrive%\NET\sec_cd\message0405.txt then Set Variable DISPLAYWARNING to N End Set Variable MAINDIR to %CDRIVE%\NET Set Variable FIRSTRUN to N If File or Directory doesn't exist %CDRIVE%\net\sv\1_3.txt then Set Variable FIRSTRUN to Y End Set Variable SECURE to Set Variable NETSCAPE to N Set Variable DOMAIN to Set Variable SEARCH_LIST to Set Variable IE5_WIN to Set Variable ONOROFFCAMPUS to C Set Variable TCPIP to Rem ****************************************************************************************** Rem Here's where we should figure out where the current user's Program group Rem file is located. This will differ depending upon the use of Windows 95 vs. Rem 98 vs. NT vs. 2000. Rem ****************************************************************************************** Parse String "%SYSTEMTIME%" into LEFT and RIGHT Parse String "%RIGHT%" into HOUR and IGNORE If HOUR Contains ":" then Parse String "%HOUR%" into HOUR and IGNORE End Parse String "%THESEDEFS%" into DAYDATE and IGNORE Get System Information into IE_VERSION Get Registry Key Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders place in Variable STARTMENUDIR Get Registry Key Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders place in Variable DESKTOPDIR Read Win32 System Directory into WINNTSYS Rem *****************************************AVDETECTALL************************************* If File exists %CDRIVE%\Program Files\Grisoft\AVG7\avgemc.exe then Set Variable AVSOFT to Grisoft AVG Set Variable AVSOFTUNINSTALL to "C:\Program Files\Grisoft\AVG7\setup.exe" /UNINSTALL Set Variable AVCOUNT to %AVCOUNT% Set Variable AVCUMULATIVE to Grisoft AVG (Append) End If File exists %CDRIVE%\Program Files\Grisoft\AVG7\avgcc.exe then Set Variable AVSOFT to Grisoft AVG Set Variable AVSOFTUNINSTALL to "C:\Program Files\Grisoft\AVG7\setup.exe" /UNINSTALL End If File exists %CDRIVE%\Program Files\Grisoft\AVG7\avgupsvc.exe then Set Variable AVSOFT to Grisoft AVG Set Variable AVSOFTUNINSTALL to "C:\Program Files\Grisoft\AVG7\setup.exe" /UNINSTALL End If File exists %CDRIVE%\Program Files\Softwin\BitDefender8\bdmcon.exe then Set Variable AVSOFT to BitDefender Set Variable AVCOUNT to %AVCOUNT% Set Variable AVCUMULATIVE to BitDefender (Append) End If File exists %CDRIVE%\Program Files\Softwin\BitDefender8\bdswitch.exe then Set Variable AVSOFT to BitDefender End If File exists %CDRIVE%\Program Files\Common Files\Softwin\BitDefender Scan Server\bdss.exe then Set Variable AVSOFT to BitDefender End If File exists %CDRIVE%\savxpsa\savxp\program files\Sophos\Sophos Anti-Virus\SAVADminService.exe then Set Variable AVSOFT to Sophos Set Variable AVCOUNT to %AVCOUNT% Set Variable AVCUMULATIVE to Sophos (Append) End If File exists %CDRIVE%\savxpsa\savxp\program files\Sophos\Sophos Anti-Virus\SavService.exe then Set Variable AVSOFT to Sophos End If File exists %CDRIVE%\Program Files\ClamWin\bin\ClamTray.exe then Set Variable AVSOFT to Clam AV for Windows Set Variable AVSOFTUNINSTALL to C:\Program Files\ClamWin\unins000.exe Set Variable AVCOUNT to %AVCOUNT% Set Variable AVCUMULATIVE to ClamWin (Append) End If File exists %CDRIVE%\Program Files\ClamWin\bin\ClamWin.exe then Set Variable AVSOFT to Clam AV for Windows Set Variable AVSOFTUNINSTALL to C:\Program Files\ClamWin\unins000.exe End If File exists %CDRIVE%\Program Files\CA\eTrust EZ Armor\eTrust EZ Antivirus\CAVRid.exe then Set Variable AVSOFT to eTrust ezAntivirus Set Variable AVSOFTUNINSTALL to C:\WINDOWS\UnVet32.exe Set Variable AVCOUNT to %AVCOUNT% Set Variable AVCUMULATIVE to eTrust (Append) End If File exists %CDRIVE%\Program Files\CA\eTrust EZ Armor\eTrust EZ Antivirus\CAVTray.exe then Set Variable AVSOFT to eTrust ezAntivirus Set Variable AVSOFTUNINSTALL to C:\WINDOWS\UnVet32.exe End If File exists %CDRIVE%\Program Files\CA\eTrust EZ Armor\eTrust EZ Antivirus\iSafe.exe then Set Variable AVSOFT to eTrust ezAntivirus Set Variable AVSOFTUNINSTALL to C:\WINDOWS\UnVet32.exe End If File exists %CDRIVE%\Program Files\CA\eTrust EZ Armor\eTrust EZ Antivirus\VetMsg.exe then Set Variable AVSOFT to eTrust ezAntivirus Set Variable AVSOFTUNINSTALL to C:\WINDOWS\UnVet32.exe End If File exists %CDRIVE%\Program Files\FSI\F-Prot\F-Sched.exe then Set Variable AVSOFT to F-Prot Set Variable AVCOUNT to %AVCOUNT% Set Variable AVCUMULATIVE to F-Prot (Append) End If File exists %CDRIVE%\Program Files\FSI\F-Prot\F-StopW.exe then Set Variable AVSOFT to F-Prot End If File exists %CDRIVE%\Program Files\FSI\F-Prot\fpavupdm.exe then Set Variable AVSOFT to F-Prot End If File exists %CDRIVE%\Program Files\F-Secure Anti-Virus\Anti-Virus\FSAV32.exe then Set Variable AVSOFT to F-Secure Set Variable AVSOFTUNINSTALL to "C:\Program Files\F-Secure Anti-Virus\Common\fsbwih.exe" /uninstall Set Variable AVCOUNT to %AVCOUNT% Set Variable AVCUMULATIVE to F-Secure (Append) End If File exists %CDRIVE%\Program Files\F-Secure Anti-Virus\Anti-Virus\fsgk32.exe then Set Variable AVSOFT to F-Secure Set Variable AVSOFTUNINSTALL to "C:\Program Files\F-Secure Anti-Virus\Common\fsbwih.exe" /uninstall End If File exists %CDRIVE%\Program Files\F-Secure Anti-Virus\FSGUI\fsguiexe.exe then Set Variable AVSOFT to F-Secure Set Variable AVSOFTUNINSTALL to "C:\Program Files\F-Secure Anti-Virus\Common\fsbwih.exe" /uninstall End If File exists %CDRIVE%\Program Files\F-Secure Anti-Virus\Common\FSM32.exe then Set Variable AVSOFT to F-Secure Set Variable AVSOFTUNINSTALL to "C:\Program Files\F-Secure Anti-Virus\Common\fsbwih.exe" /uninstall End If File exists %CDRIVE%\Program Files\Kaspersky Lab\Kaspersky Anti-Virus Personal\kav.exe then Set Variable AVSOFT to Kasperksy Set Variable AVSOFTUNINSTALL to Program Files\Kaspersky Lab\Kaspersky Anti-Virus Personal\Uninstall.exe Set Variable AVCOUNT to %AVCOUNT% Set Variable AVCUMULATIVE to Kasperksy (Append) End If File exists %CDRIVE%\Program Files\Kaspersky Lab\Kaspersky Anti-Virus Personal\kavsvc.exe then Set Variable AVSOFT to Kasperksy Set Variable AVSOFTUNINSTALL to Program Files\Kaspersky Lab\Kaspersky Anti-Virus Personal\Uninstall.exe End If File exists %CDRIVE%\Norman\Bin\Njeeves.exe then Set Variable AVSOFT to Norman Virus Control Set Variable AVSOFTUNINSTALL to C:\Norman\Nvc\Bin\Delnvc5.exe Set Variable AVCOUNT to %AVCOUNT% Set Variable AVCUMULATIVE to Norman (Append) End If File exists %CDRIVE%\Norman\Bin\Zanda.exe then Set Variable AVSOFT to Norman Virus Control Set Variable AVSOFTUNINSTALL to C:\Norman\Nvc\Bin\Delnvc5.exe End If File exists %CDRIVE%\Norman\Nvc\Bin\Nip.exe then Set Variable AVSOFT to Norman Virus Control Set Variable AVSOFTUNINSTALL to C:\Norman\Nvc\Bin\Delnvc5.exe End If File exists %CDRIVE%\Program Files\Trend Micro\Internet Security 2005\PcCtlCom.exe then Set Variable AVSOFT to Trend Micro PC-Cillin Set Variable AVCOUNT to %AVCOUNT% Set Variable AVCUMULATIVE to Trend Micro PC-Cillin (Append) End If File exists %CDRIVE%\Program Files\Trend Micro\Internet Security 2005\TMntsrv.exe then Set Variable AVSOFT to Trend Micro PC-Cillin End If File exists %CDRIVE%\Program Files\Trend Micro\Internet Security 2005\tmproxy.exe then Set Variable AVSOFT to Trend Micro PC-Cillin End If File exists %CDRIVE%\Program Files\Alwil Software\Avast4\ashDisp.exe then Set Variable AVSOFT to Avast! Set Variable AVSOFTUNINSTALL to rundll32 C:\PROGRA~1\ALWILS~1\Avast4\Setup\setiface.dll,RunSetup\ Set Variable AVCOUNT to %AVCOUNT% Set Variable AVCUMULATIVE to Avast! (Append) End If File exists %CDRIVE%\Program Files\Alwil Software\Avast4\ashMaiSv.EXE then Set Variable AVSOFT to Avast! Set Variable AVSOFTUNINSTALL to rundll32 C:\PROGRA~1\ALWILS~1\Avast4\Setup\setiface.dll,RunSetup\ End If File exists %CDRIVE%\Program Files\Alwil Software\Avast4\ashServ.exe then Set Variable AVSOFT to Avast! Set Variable AVSOFTUNINSTALL to rundll32 C:\PROGRA~1\ALWILS~1\Avast4\Setup\setiface.dll,RunSetup\ End If File exists %CDRIVE%\Program Files\Alwil Software\Avast4\aswUpdSv.exe then Set Variable AVSOFT to Avast! Set Variable AVSOFTUNINSTALL to rundll32 C:\PROGRA~1\ALWILS~1\Avast4\Setup\setiface.dll,RunSetup\ End If File exists %CDRIVE%\Program Files\Panda Software\Panda Titanium Antivirus 2005\APVXDWIN.EXE then Set Variable AVSOFT to Panda Set Variable AVSOFTUNINSTALL to RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\engine\6\INTEL3~1\ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information\{BB85F18B-43C6-48B5-ABA9-6A5DDA65AA1B}\setup.exe" Set Variable AVCOUNT to %AVCOUNT% Set Variable AVCUMULATIVE to Panda (Append) End If File exists %CDRIVE%\Program Files\Panda Software\Panda Titanium Antivirus 2005\AVENGINE.EXE then Set Variable AVSOFT to Panda Set Variable AVSOFTUNINSTALL to RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\engine\6\INTEL3~1\ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information\{BB85F18B-43C6-48B5-ABA9-6A5DDA65AA1B}\setup.exe" End If File exists %CDRIVE%\Program Files\Panda Software\Panda Titanium Antivirus 2005\pavFnSvr.exe then Set Variable AVSOFT to Panda Set Variable AVSOFTUNINSTALL to RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\engine\6\INTEL3~1\ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information\{BB85F18B-43C6-48B5-ABA9-6A5DDA65AA1B}\setup.exe" End If File exists %CDRIVE%\Program Files\Common Files\Panda Software\PavShld\PavPrSrv.exe then Set Variable AVSOFT to Panda Set Variable AVSOFTUNINSTALL to RunDll32 C:\PROGRA~1\COMMON~1\INSTAL~1\engine\6\INTEL3~1\ctor.dll,LaunchSetup "C:\Program Files\InstallShield Installation Information\{BB85F18B-43C6-48B5-ABA9-6A5DDA65AA1B}\setup.exe" End If File exists %CDRIVE%\Program Files\Ahnlab\Smart Update Utility\AhnSD.exe then Set Variable AVSOFT to V3Pro Set Variable AVCOUNT to %AVCOUNT% Set Variable AVCUMULATIVE to V3Pro (Append) End If File exists %CDRIVE%\Program Files\Ahnlab\Smart Update Utility\AhnSDsv.exe then Set Variable AVSOFT to V3Pro End If File exists %CDRIVE%\Program Files\Ahnlab\V3\V3IMPro.exe then Set Variable AVSOFT to V3Pro End If File exists %CDRIVE%\Program Files\Ahnlab\V3\V3P3AT.exe then Set Variable AVSOFT to V3Pro End If File exists %CDRIVE%\Program Files\Protector Plus\PPAVMON.EXE then Set Variable AVSOFT to Protector Plus 2000 Set Variable AVSOFTUNINSTALL to "C:\Program Files\Protector Plus\SETUP.EXE" /DEINSTALL Set Variable AVCOUNT to %AVCOUNT% Set Variable AVCUMULATIVE to Protector Plus 2000 (Append) End If File exists %CDRIVE%\Program Files\Protector Plus\PPSERV.EXE then Set Variable AVSOFT to Protector Plus 2000 Set Variable AVSOFTUNINSTALL to "C:\Program Files\Protector Plus\SETUP.EXE" /DEINSTALL End If File exists %CDRIVE%\Program Files\Protector Plus\PPINPUDT.EXE then Set Variable AVSOFT to Protector Plus 2000 Set Variable AVSOFTUNINSTALL to "C:\Program Files\Protector Plus\SETUP.EXE" /DEINSTALL End If File exists %CDRIVE%\Program Files\Protector Plus\PPTBC.EXE then Set Variable AVSOFT to Protector Plus 2000 Set Variable AVSOFTUNINSTALL to "C:\Program Files\Protector Plus\SETUP.EXE" /DEINSTALL End Rem *****************************************AVDETECT************************************* If File exists %CDRIVE%\PROGRA~1\NORTON~3\NAVW32.EXE then Set Variable NAVPATH to %CDRIVE%\PROGRA~1\NORTON~3\NAVW32.EXE Set Variable INSTALLNORTON to N Set Variable NORTONCOUNT to 1 Set Variable AVCUMULATIVE to Norton Retail (Append) Set Variable AVSOFT to Norton AntiVirus (NAV) End If File exists %CDRIVE%\PROGRA~1\NORTON~2\NAVW32.EXE then Set Variable NAVPATH to %CDRIVE%\PROGRA~1\NORTON~2\NAVW32.EXE Set Variable INSTALLNORTON to N Set Variable NORTONCOUNT to 1 Set Variable AVCUMULATIVE to Norton Retail (Append) Set Variable AVSOFT to Norton AntiVirus (NAV) End If File exists %CDRIVE%\PROGRA~1\NORTON~1\NAVW32.EXE then Set Variable NAVPATH to %CDRIVE%\PROGRA~1\NORTON~1\NAVW32.EXE Set Variable INSTALLNORTON to N Set Variable NORTONCOUNT to 1 Set Variable AVCUMULATIVE to Norton Retail (Append) Set Variable AVSOFT to Norton AntiVirus (NAV) End If File exists %CDRIVE%\PROGRA~1\NORTON~1\NORTON~1\NAVW32.EXE then Set Variable NAVPATH to %CDRIVE%\PROGRA~1\NORTON~1\NORTON~1\NAVW32.EXE Set Variable INSTALLNORTON to N Set Variable NORTONCOUNT to 1 Set Variable AVCUMULATIVE to Norton Retail (Append) Set Variable AVSOFT to Norton AntiVirus (NAV) End If File exists %CDRIVE%\PROGRA~1\NORTON~1\NAVWNT.EXE then Set Variable NAVPATH to %CDRIVE%\PROGRA~1\NORTON~1\NAVWNT.EXE Set Variable INSTALLNORTON to N Set Variable NORTONCOUNT to 1 Set Variable AVCUMULATIVE to Norton Retail (Append) Set Variable AVSOFT to Norton AntiVirus (NAV) End If File exists %CDRIVE%\PROGRA~1\NORTON~2\NAVWNT.EXE then Set Variable NAVPATH to %CDRIVE%\PROGRA~1\NORTON~2\NAVWNT.EXE Set Variable INSTALLNORTON to N Set Variable NORTONCOUNT to 1 Set Variable AVCUMULATIVE to Norton Retail (Append) Set Variable AVSOFT to Norton AntiVirus (NAV) End If File exists %CDRIVE%\PROGRA~1\NORTON~3\NAVWNT.EXE then Set Variable NAVPATH to %CDRIVE%\PROGRA~1\NORTON~3\NAVWNT.EXE Set Variable INSTALLNORTON to N Set Variable NORTONCOUNT to 1 Set Variable AVCUMULATIVE to Norton Retail (Append) Set Variable AVSOFT to Norton AntiVirus (NAV) End If File exists %CDRIVE%\Program Files\Norton SystemWorks\Norton AntiVirus\NAVW32.EXE then Set Variable NAVPATH to %CDRIVE%\Program Files\Norton SystemWorks\Norton AntiVirus\NAVW32.EXE Set Variable INSTALLNORTON to N Set Variable NORTONCOUNT to 1 Set Variable AVCUMULATIVE to Norton Retail w/ systemworks (Append) Set Variable AVSOFT to Norton AntiVirus (NAV) w/ SystemWorks End If File exists %CDRIVE%\Program Files\Norton AntiVirus\vpc32.exe then Set Variable NAVPATH to %CDRIVE%\Program Files\Norton AntiVirus\vpc32.exe Set Variable INSTALLNORTON to N Set Variable NORTONCOUNT to 1 Set Variable AVCUMULATIVE to Norton Corp. Edition (Append) Set Variable AVSOFT to Symantec AntiVirus (SAV) Corp. Edition End If File exists %CDRIVE%\Program Files\Symantec AntiVirus\VPC32.exe then Set Variable NAVPATH to %CDRIVE%\Program Files\Symantec AntiVirus\VPC32.exe Set Variable INSTALLNORTON to N Set Variable NORTONCOUNT to 1 Set Variable AVCUMULATIVE to Norton Corp. Edition (Append) Set Variable AVSOFT to Symantec AntiVirus (SAV) Corp. Edition End If File exists %CDRIVE%\PROGRA~1\SYMANT~1\SYMANT~1\VPC32.exe then Set Variable NAVPATH to %CDRIVE%\PROGRA~1\SYMANT~1\SYMANT~1\VPC32.exe Set Variable INSTALLNORTON to N Set Variable NORTONCOUNT to 1 Set Variable AVCUMULATIVE to Norton Corp. Edition (Append) Set Variable AVSOFT to Symantec AntiVirus (SAV) Corp. Edition End If File exists %CDRIVE%\Program Files\NavNT\vpc32.exe then Set Variable NAVPATH to %CDRIVE%\Program Files\NavNT\vpc32.exe Set Variable INSTALLNORTON to N Set Variable NORTONCOUNT to 1 Set Variable AVCUMULATIVE to Norton Corp. Edition (Append) Set Variable AVSOFT to Symantec AntiVirus (SAV) Corp. Edition End If File exists %CDRIVE%\PROGRA~1\McAfee.com\VSO\mcmnhdlr.exe then Rem RETAIL Set Variable INSTALLNORTON to N Set Variable MCAFEE to N Set Variable AVCOUNT to %AVCOUNT% Set Variable AVCUMULATIVE to McAfee Retail (Append) Set Variable AVSOFT to McAfee Retail End If File exists %CDRIVE%\Program Files\Network Associates\VirusScan\scan32.exe then Set Variable INSTALLNORTON to N Set Variable MCAFEE to Y Set Variable AVCOUNT to %AVCOUNT% Set Variable AVCUMULATIVE to McAfee Enterprise Edition (Append) Set Variable AVSOFT to McAfee Enterprise Edition End If NORTONCOUNT Equals "1" then Set Variable AVCOUNT to %AVCOUNT% End Parse String "%NAVPATH%" into REALNAVPATH and IGNORE Set Variable EXITQUIET to N Display Progress Message " " If AVCOUNT Greater Than "1" then Wizard Loop Custom Dialog "MultiAVFoundWarn" If EXITQUIET Equals (Ignore Case) "Y" then Exit Installation End End End Display Progress Message "%APPTITLE% Starting..." Rem *****************************************WORM************************************* Set Variable SASSER to N Set Variable SASSERE to N If File exists %win%\lsasss.exe then Set Variable SASSER to Y Set Variable SASSERE to Y End If File exists %win%\napatch.exe then Set Variable SASSERE to Y Set Variable SASSER to Y End If File exists %win%\skynetave.exe then Set Variable SASSER to Y End If File exists %win%\avserve2.exe then Set Variable SASSER to Y End If File exists %win%\avserve.exe then Set Variable SASSER to Y End If File exists %win%\winppr32.exe then Set Variable SOBIGF to Y End If File exists %win%\winstt32.dat then Set Variable SOBIGF to Y End If File exists %sys%\wins\svchost.exe then Set Variable WELCHIA to Y End If File exists %sys%\wins\dllhost.exe then Set Variable WELCHIA to Y End If File exists %sys%\qossrv\svchost.exe then Set Variable DETECTWORM to Y End If File exists %sys%\dhcp\svchost.exe then Set Variable DETECTWORM to Y End If File exists %sys%\restore\svchost.exe then Set Variable DETECTWORM to Y End If File exists %sys%\config\svchost.exe then Set Variable DETECTWORM to Y End If File exists %sys%\qossrv\csrss.exe then Set Variable DETECTWORM to Y End If File exists %sys%\dhcp\csrss.exe then Set Variable DETECTWORM to Y End If File exists %sys%\wins\csrss.exe then Set Variable DETECTWORM to Y End If File exists %sys%\restore\csrss.exe then Set Variable DETECTWORM to Y End If File exists %sys%\config\csrss.exe then Set Variable DETECTWORM to Y End If File exists %sys%\qossrv\dllhost.exe then Set Variable DETECTWORM to Y End If File exists %sys%\dhcp\dllhost.exe then Set Variable DETECTWORM to Y End If File exists %sys%\restore\dllhost.exe then Set Variable DETECTWORM to Y End If File exists %sys%\config\dllhost.exe then Set Variable DETECTWORM to Y End If File exists %sys%\qossrv\FireDaemon.exe then Set Variable DETECTWORM to Y End If File exists %sys%\dhcp\FireDaemon.exe then Set Variable DETECTWORM to Y End If File exists %sys%\wins\FireDaemon.exe then Set Variable DETECTWORM to Y End If File exists %sys%\restore\FireDaemon.exe then Set Variable DETECTWORM to Y End If File exists %sys%\config\FireDaemon.exe then Set Variable DETECTWORM to Y End If File exists %sys%\qossrv\explorer.exe then Set Variable DETECTWORM to Y End If File exists %sys%\dhcp\explorer.exe then Set Variable DETECTWORM to Y End If File exists %sys%\wins\explorer.exe then Set Variable DETECTWORM to Y End If File exists %sys%\restore\explorer.exe then Set Variable DETECTWORM to Y End If File exists %sys%\config\explorer.exe then Set Variable DETECTWORM to Y End If File exists %sys%\qossrv\winmgnt.exe then Set Variable DETECTWORM to Y End If File exists %sys%\dhcp\winmgnt.exe then Set Variable DETECTWORM to Y End If File exists %sys%\wins\winmgnt.exe then Set Variable DETECTWORM to Y End If File exists %sys%\restore\winmgnt.exe then Set Variable DETECTWORM to Y End If File exists %sys%\config\winmgnt.exe then Set Variable DETECTWORM to Y End If File exists %sys%\qossrv\aysshell.exe then Set Variable DETECTWORM to Y End If File exists %sys%\dhcp\aysshell.exe then Set Variable DETECTWORM to Y End If File exists %sys%\wins\aysshell.exe then Set Variable DETECTWORM to Y End If File exists %sys%\restore\aysshell.exe then Set Variable DETECTWORM to Y End If File exists %sys%\config\aysshell.exe then Set Variable DETECTWORM to Y End If DETECTWORM Equals "Y" then Set Variable ANYWORM to Y End If WELCHIA Equals "Y" then Set Variable ANYWORM to Y End If SOBIGF Equals "Y" then Set Variable ANYWORM to Y End If ANYWORM Equals "Y" then Set Variable INFECTEDSTATUS to This Computer is Infected with Blaster, Welchia or SoBig.F End If SASSER Equals "Y" then Set Variable INFECTEDSTATUS to This Computer is Infected with Sasser End If SASSERE Equals "Y" then Set Variable INFECTEDSTATUS to This Computer is Infected with Sasser.E or F End Search for file %sys%\msblast.exe place in Variable BLASTERS If BLASTERS Not Equal (Ignore Case) "" then Set Variable INFECTEDSTATUS to This Computer is Infected with Blaster Set Variable DETECTWORM to Y End Get System Information into SSHVERNO If AVCUMULATIVE Contains "Norton Retail" then Get System Information into VIRUSDEFVERNO End If AVCUMULATIVE Contains "McAfee Enterprise Edition" then Get System Information into VIRUSDEFVERNO End Get System Information into SPYBOTDEFDATE If System Doesn't Have Windows NT Running then Set Variable NT2KXP to N Else Set Variable NT2KXP to Y End Get System Information into WINVERSION Parse String "%LEFT%" into MONTH and IGNORE Set Variable EXPIRECHECK to %MONTH%%IGNORE% Parse String "%LEFT%" into IGNORE and ACTUALYEAR Get System Information into SPACKNO Set Variable 0405EXP to N Set Variable TESTYEAR to EXPYEAR-ACTUALYEAR Set Variable TESTMONTH to EXPMONTH-MONTH If TESTYEAR Less Than "0" then Rem Correct year- 2005 EXPYEAR-ACTUAL=0 Rem Negative value occurs when past year Set Variable 0405EXP to Y End If TESTYEAR Equals "0" then Rem Correct year- 2005 EXPYEAR-ACTUAL=0 If TESTMONTH Less Than "0" then Rem Negative value occurs when past month, only get here if correct year Set Variable 0405EXP to Y End End Set Variable ONLINESTATUS to N If NT2KXP Equals "Y" then Execute %sys%\cmd.exe /C "%sys%\ipconfig.exe > %cdrive%\NET\sec_cd\ipconfig.txt" (Wait) Execute %sys%\cmd.exe /C "%sys%\netsh.exe firewall show state > %cdrive%\NET\sec_cd\netcfg.txt" (Wait) Read lines of file %cdrive%\NET\sec_cd\netcfg.txt into variable FIREWALLINFO Start Block Parse String "%FIREWALLINFO%" into LEFT and RIGHT If RIGHT Contains " mode" then Set Variable POI to %RIGHT% End End Set Variable FIREWALLON to N If POI Contains "Enable" then Set Variable FIREWALLON to Y End Get System Information into SIZEOFIPCFG End If WINVERSION Greater Than or Equal "5.1" then If SIZEOFIPCFG Greater Than "300" then Set Variable ONLINESTATUS to Y End End If WINVERSION Contains "5.0" then If SIZEOFIPCFG Greater Than "280" then Set Variable ONLINESTATUS to Y End End Set Variable AUENABLED to N Get Registry Key SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update place in Variable AUSTATE If AUSTATE Equals "4" then Set Variable AUENABLED to Y End Set Variable SPYBOTINSTALLED to N If File or Directory exists %cdrive%\Program Files\Spybot - Search & Destroy\SpybotSD.exe then Set Variable SPYBOTINSTALLED to Y End Rem ***********************WELCOME Rem ***********************WELCOME Display Progress Message " " If 0405EXP Equals "Y" then Display Message "Check for Update" End Wizard Loop Custom Dialog "Welcome" If EXITQUIET Equals "Y" then Exit Installation End If EXITFILEFOLDER Equals "Y" then Execute %INST% Exit Installation End End If NT2KXP Equals "Y" then Execute %sys%\ipconfig.exe /release * (Wait) End If SASSER Equals "Y" then Wizard Loop Custom Dialog "SASSER DISP" Execute %INST%\Tools\stinger.exe (Wait) End End If SOBIGF Equals "Y" then Wizard Loop Custom Dialog "SObigF293" Execute %INST%\Tools\stinger.exe (Wait) End End If WELCHIA Equals "Y" then Wizard Loop Custom Dialog "Welchia" Execute %INST%\Tools\stinger.exe (Wait) End End If DETECTWORM Equals (Ignore Case) "Y" then Wizard Loop Custom Dialog "Worm Detected" If EXITQUIET Equals "Y" then Exit Installation End Execute %INST%\Tools\stinger.exe (Wait) End End Set Variable EXITQUIET to N Set Variable 2KFILTER to N If WINVERSION Contains "5.0" then Wizard Loop Custom Dialog "Enable W2K Filter" If EXITQUIET Not Equal "Y" then If 2KFILTER Equals "Y" then Execute %INST%\Tools\w2k_filter\enable_filter.bat (Wait) End If 2KFILTER Equals "N" then Execute %INST%\Tools\w2k_filter\disable_filter.bat (Wait) End End End End If WINVERSION Contains "5.1" then Wizard Loop Custom Dialog "Enable ICF" If EXITQUIET Not Equal "Y" then If SPACKNO Less Than "2" then Display Message "Please click "Yes..." " Execute %INST%\Tools\icf_enable.vbs (Wait) Else Execute %sys%\netsh firewall set opmode enable End End End End Set Variable EXITQUIET to N If WINVERSION Contains "5" then Wizard Loop Custom Dialog "Enable AutoUpdates" If EXITQUIET Not Equal "Y" then Edit 4 registry keys End End Wizard Loop Custom Dialog "Disable Messenger" If EXITQUIET Not Equal "Y" then Stop Service Messenger Registry Key SYSTEM\CurrentControlSet\Services\Messenger = 4 End End Wizard Loop Custom Dialog "Disable UPNP Services" If EXITQUIET Not Equal "Y" then Stop Service SSDPSRV Registry Key SYSTEM\CurrentControlSet\Services\SSDPSRV = 4 Stop Service upnphost Registry Key SYSTEM\CurrentControlSet\Services\upnphost = 4 End End End Set Variable EXITQUIET to N Set Variable DIRECTION to N If WINVERSION Contains "5" then Get Registry Key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB828741 place in Variable KB828741 Get Registry Key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB823182 place in Variable KB823182 Get Registry Key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB828035 place in Variable KB828035 Get Registry Key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB825119 place in Variable KB825119 Get Registry Key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB828028 place in Variable KB828028 Get Registry Key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB835732 place in Variable KB835732 Get Registry Key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB899588 place in Variable KB899588 Set Variable PATCHESNEEDED to KB828741+KB823182+KB828035+KB825119+KB828028+KB835732 End Get System Information into SPACKNO Set Variable EXITQUIET to N If WINVERSION Contains "5.1" then If SPACKNO Less Than "2" then If PATCHESNEEDED Less Than "6" then Wizard Loop Custom Dialog "RPC Patch XP" If EXITQUIET Not Equal "Y" then Set Variable SP2REBOOT to Y Rem no /q to show what's going on... Rem WAS If key exists, and not equal 1. i.e. SP2 may be rolllup and not individually noted in keys Rem MS04-12 is rollup for 026/039. Just checking for it. Get Registry Key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB828741 place in Variable KB828741 If KB828741 Not Equal "1" then Execute %INST%\patches\MS04-012_KB828741\WindowsXP-KB828741-x86-ENU.exe /z (Wait) End Get Registry Key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB823182 place in Variable KB823182 If KB823182 Not Equal "1" then Execute %INST%\patches\MS03-041_KB823182\WindowsXP-KB823182-x86-ENU.exe /z (Wait) End Get Registry Key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB828035 place in Variable KB828035 If KB828035 Not Equal "1" then Execute %INST%\patches\MS03-043_KB828035 (Messenger)\WindowsXP-KB828035-x86-ENU.exe /z (Wait) End Get Registry Key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB825119 place in Variable KB825119 If KB825119 Not Equal "1" then Execute %INST%\patches\MS03-044_KB825119\WindowsXP-KB825119-x86-ENU.exe /z (Wait) End Get Registry Key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB828028 place in Variable KB828028 If KB828028 Not Equal "1" then Execute %INST%\patches\MS04-007_KB828028\WindowsXP-KB828028-x86-ENU.exe /z (Wait) End Get Registry Key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB835732 place in Variable KB835732 If KB835732 Not Equal "1" then Execute %INST%\patches\MS04-011_KB835732\WindowsXP-KB835732-x86-ENU.EXE /z (Wait) End If SPACKNO Less Than "1" then Display Message "Windows XP - No Service Packs Applied" Execute %INST%\patches\SP_XP Service Pack 1a\xpsp1a_en_x86-ENU.exe /z (Wait) End Display Message "Reboot Required..." Install File C:\NET\sv\1_3.txt to %CDRIVE%\net\sv\1_3.txt (Preserve existing) Reboot System End End End End End If WINVERSION Contains "5.0" then If PATCHESNEEDED Less Than "6" then Wizard Loop Custom Dialog "RPC Patch 2000" If EXITQUIET Not Equal (Ignore Case) "Y" then If SPACKNO Less Than "4" then Display Message "Service Pack Less Than SP4" Execute %INST%\patches\SP_2000 Service Pack 4\W2KSP4_EN.EXE /z (Wait) End Set Variable SP2REBOOT to Y Get Registry Key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB828741 place in Variable KB828741 If KB828741 Not Equal "1" then Execute %INST%\patches\MS04-012_KB828741\Windows2000-KB828741-x86-ENU.EXE /z (Wait) End Get Registry Key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB823182 place in Variable KB823182 If KB823182 Not Equal "1" then Execute %INST%\patches\MS03-041_KB823182\Windows2000-KB823182-x86-ENU.exe /z (Wait) End Get Registry Key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB826232 place in Variable KB826232 If KB826232 Not Equal "1" then Execute %INST%\patches\MS03-042_KB826232 (2000 only)\Windows2000-KB826232-x86-ENU.exe /z (Wait) End Get Registry Key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB828035 place in Variable KB828035 If KB828035 Not Equal "1" then Execute %INST%\patches\MS03-043_KB828035 (Messenger)\Windows2000-KB828035-x86-ENU.exe /z (Wait) End Get Registry Key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB825119 place in Variable KB825119 If KB825119 Not Equal "1" then Execute %INST%\patches\MS03-044_KB825119\Windows2000-KB825119-x86-ENU.exe /z (Wait) End Get Registry Key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB828028 place in Variable KB828028 If KB828028 Not Equal "1" then Execute %INST%\patches\MS04-007_KB828028\Windows2000-KB828028-x86-ENU.EXE /z (Wait) End Get Registry Key SOFTWARE\Microsoft\Windows NT\CurrentVersion\HotFix\KB835732 place in Variable KB835732 If KB835732 Not Equal "1" then Execute %INST%\patches\MS04-011_KB835732\Windows2000-KB835732-x86-ENU.EXE /z (Wait) End Display Message "Reboot Required..." Install File C:\NET\sv\1_3.txt to %CDRIVE%\net\sv\1_3.txt (Preserve existing) Reboot System End End End End Rem BEGIN HOST FILE ISSUES Set Variable EXITQUIET to N If ANYHOSTFILE Equals "Y" then Wizard Loop Custom Dialog "Host Files" If EXITQUIET Equals "N" then If WINHOSTPATH Not Equal "" then Rename %WINHOSTPATH% to hosts.bak End If SYSHOSTPATH Not Equal "" then Rename %SYSHOSTPATH% to hosts.bak End End End End Rem END HOST FILE ISSUES If VIRUSDEFVERNO Contains "2000" then Set Variable UPDATEDEFS to Y End If VIRUSDEFVERNO Contains "2001" then Set Variable UPDATEDEFS to Y End If VIRUSDEFVERNO Contains "2002" then Set Variable UPDATEDEFS to Y End If VIRUSDEFVERNO Contains "2003" then Set Variable UPDATEDEFS to Y End If VIRUSDEFVERNO Contains "2004" then Set Variable UPDATEDEFS to Y End If VIRUSDEFVERNO Less Than "%THESEDEFS%" then Set Variable UPDATEDEFS to Y End Set Variable UPDATESDAT to N Set Variable EXITQUIET to N If ONLINESTATUS Contains "Y" then Display Progress Message "Re-initializing Network Stack... " Execute %sys%\ipconfig.exe /renew (Wait) End Display Progress Message " " If MCAFEE Equals (Ignore Case) "Y" then If ONLINESTATUS Equals "Y" then Wizard Loop Custom Dialog "Updates and Scan" End If File or Directory exists %cdrive%\Program Files\Network Associates\VirusScan\mcupdate.exe then Execute %cdrive%\Program Files\Network Associates\VirusScan\mcupdate.exe (Wait) End If EXITQUIET Equals "Y" then If File or Directory exists %cdrive%\Program Files\Network Associates\VirusScan\scan32.exe then Execute %cdrive%\Program Files\Network Associates\VirusScan\scan32.exe (Wait) End End End Set Variable EXITQUIET to N If ONLINESTATUS Equals "N" then Wizard Loop Custom Dialog "Updates and Scan OFFLINE" End If File or Directory exists %cdrive%\Program Files\Network Associates\VirusScan\mcupdate.exe then Execute %inst%\defs\sdat.exe (Wait) End If EXITQUIET Equals "Y" then If File or Directory exists %cdrive%\Program Files\Network Associates\VirusScan\scan32.exe then Execute %cdrive%\Program Files\Network Associates\VirusScan\scan32.exe (Wait) End End End End Set Variable EXITQUIET to N Set Variable UPDATEANYWAY to N Set Variable SKIPDEFUPDATE to N If MCAFEE Equals (Ignore Case) "N" then If INSTALLNORTON Equals (Ignore Case) "N" then If VIRUSDEFVERNO Not Equal "" then If UPDATEDEFS Equals "N" then Wizard Loop Custom Dialog "Already up to date" If UPDATEANYWAY Equals "Y" then Execute %INST%\defs\virus_definition_update-x86.exe (Wait) End End Else Wizard Loop Custom Dialog "Virus Definition Update" If SKIPDEFUPDATE Equals "N" then Execute %INST%\defs\virus_definition_update-x86.exe (Wait) End End End End End End Set Variable EXITQUIET to N If WINVERSION Contains "5.1" then If SPACKNO Less Than "2" then Wizard Loop Custom Dialog "SP2 NEEDED" If EXITQUIET Not Equal (Ignore Case) "Y" then Set Variable INSTALLNORTON to N Set Variable WUPDATERUN to Y End End End End If WINVERSION Contains "5.0" then Set Variable DISPLAY_PATCHSTATUS to If KB899588 Not Equal "1" then Set Variable DISPLAY_PATCHSTATUS to Your PC is missing one or more other critical updates (i.e. KB899588) End End If WINVERSION Contains "5.1" then Set Variable DISPLAY_PATCHSTATUS to If KB899588 Not Equal "1" then Set Variable DISPLAY_PATCHSTATUS to WARNING: Your PC is missing one or more other critical updates (i.e. KB899588) End End Set Variable EXITQUIET to N Set Variable REALLYONLINE to N If ANYWORM Equals "N" then If ONLINESTATUS Equals "Y" then Wizard Loop Custom Dialog "Windows Update" If EXITQUIET Not Equal "Y" then If NT2KXP Equals "Y" then Set Variable REALLYONLINE to Y Display Message "After Windows Update..." Execute %CDRIVE%\program files\internet explorer\iexplore.exe http://windowsupdate.microsoft.com (Wait) Else Execute %CDRIVE%\program files\internet explorer\iexplore.exe http://windowsupdate.microsoft.com (Wait) End End End End End Set Variable EXITQUIET to N If MCAFEE Equals "N" then If AVCUMULATIVE Contains "Norton Retail" then If ANYWORM Equals "N" then If REALLYONLINE Equals "Y" then If INSTALLNORTON Equals (Ignore Case) "N" then If VIRUSDEFVERNO Not Equal "" then Wizard Loop Custom Dialog "Definition Update" If LIVEUPDATE Equals "Y" then If File or Directory exists %cdrive%\Program Files\Symantec\LiveUpdate\LUALL.EXE then Execute %cdrive%\Program Files\Symantec\LiveUpdate\LUALL.EXE (Wait) End End Set Variable NARST to Y Continue/Start writing to installation log End End End End End End End Set Variable EXITQUIET to N If ANYWORM Equals "Y" then Display Message "One or more worms were found during this session" End Set Variable EXITQUIET to N Set Variable JUSTINSTALLEDFF to N If INSTALLFIREFOX Equals "Y" then Wizard Loop Custom Dialog "Install Firefox" If EXITQUIET Equals "N" then Execute %INST%\Tools\Firefox Setup 1.0.7.exe (Wait) Set Variable JUSTINSTALLEDFF to Y End End End Set Variable EXITQUIET to N If JUSTINSTALLEDFF Contains "N" then If FIREFOXVERSION Less Than "%FIREFOXVERSIONONCD%" then Wizard Loop Custom Dialog "Update Firefox" If EXITQUIET Equals "N" then Execute %INST%\Tools\Firefox Setup 1.0.7.exe (Wait) End End End End Rem Browser Set Variable EXITQUIET to N If File or Directory exists %cdrive%\Program Files\Spybot - Search & Destroy\SpybotSD.exe then Get System Information into SPYBOT_VERSION If SPYBOT_VERSION Less Than "%SPYBOTVERSIONONCD%" then Wizard Loop Custom Dialog "SpybotCheck" If EXITQUIET Not Equal "Y" then Execute %INST%\Tools\Spybot\Setup.EXE /silent (Wait) End End End End Set Variable EXITQUIET to N If File or Directory doesn't exist %cdrive%\Program Files\Spybot - Search & Destroy\SpybotSD.exe then Wizard Loop Custom Dialog "spybot" If EXITQUIET Not Equal "Y" then Execute %INST%\Tools\Spybot\Setup.EXE /silent (Wait) Execute %inst%\defs\spybotsd_advcheck.exe (Wait) End End End Rem UPDATE SPYBOT INCLUDES FROM STATIC FILE Set Variable EXITQUIET to N Set Variable SPYUPDATE to N If SPYBOTDEFDATE Contains "2004" then Set Variable SPYUPDATE to Y End If SPYBOTDEFDATE Less Than "%INCLUDESDATE%" then Set Variable SPYUPDATE to Y End If SPYUPDATE Equals "Y" then If File or Directory exists %cdrive%\Program Files\Spybot - Search & Destroy\SpybotSD.exe then Wizard Loop Custom Dialog "IncludesUpdate" If EXITQUIET Not Equal "Y" then Execute %INST%\defs\spybotsd_includes.exe (Wait) End End End End Rem UPDATE SPYBOT INCLUDES FROM STATIC FILE Set Variable EXITQUIET to N If File or Directory exists %cdrive%\Program Files\Spybot - Search & Destroy\SpybotSD.exe then Wizard Loop Custom Dialog "spybotscan" If EXITQUIET Not Equal "Y" then Execute "%cdrive%\Program Files\Spybot - Search & Destroy\SpybotSD.exe" /autoupdate /autocheck (Wait) End End End If MCAFEE Equals "N" then If AVCUMULATIVE Contains "Norton Retail" then If VIRUSDEFVERNO Not Equal "" then If NAVSCAN Equals "Y" then Wizard Loop Custom Dialog "SCAN" If SYSTEM32SCAN Equals "Y" then If NAVPATH Not Equal "" then Execute %NAVPATH% %SYS% (Wait) End End If SYSTEM32SCAN Equals "Z" then If NAVPATH Not Equal "" then Execute %NAVPATH% /A (Wait) End End End End End End End Rem *** Delete Temporary Files via next RUNONCE, 5 is 2K or XP or newer Set Variable EXITQUIET to N Wizard Loop Custom Dialog "Delete Temp Files" If EXITQUIET Equals "N" then Install File C:\Network Software\Network Applications Installer\Standard\TempCleanup.EXE to %cdrive%\net\sec_cd\TempCleanup.EXE Registry Key SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce = %cdrive%\net\sec_cd\TempCleanup.EXE End End Rem *** Check for Java. If Java, offer the nice Java Update Web Page Set Variable EXITQUIET to N If File or Directory exists %cdrive%\Program Files\Java then If REALLYONLINE Equals "Y" then Wizard Loop Custom Dialog "JavaCheck" If EXITQUIET Not Equal "Y" then Execute "http://www.java.com/en/download/" (Wait) End End End End Set Variable EXITQUIET to N If File or Directory exists %cdrive%\Program Files\Qualcomm\Eudora\Eudora.exe then Get System Information into EUDORA_VERSION If EUDORA_VERSION Less Than "%EUDORAVERSIONONCD%" then Wizard Loop Custom Dialog "EudoraCheck" If EXITQUIET Not Equal "Y" then Execute %INST%\Tools\Eudora\Eudora_6.2.3.exe (Wait) End End End End Set Variable DIRECTION to N Set Variable DRESTART to N Wizard Loop Custom Dialog "Update Complete" If SP2REBOOT Equals (Ignore Case) "Y" then Reboot System End If DRESTART Equals (Ignore Case) "Y" then Reboot System End Rem *** THEY WERE ALREADY ONLINE WHEN THEY STARTED-- running NT/2K/XP Display Progress Message " " End Rem ********************** Exit Installation