Rem *** This UO 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) Set Variable RESTART to Get System Information into WINVERSION Set Variable BOOTDRIVEA to %WIN% Parse String "%BOOTDRIVEA%" into CDRIVE and IGNORE If CDRIVE Does Not Contain ":" then Set Variable CDRIVE to C: End Install File C:\Network Software\Product\sv\message0405.txt to %cdrive%\NET\sec_cd\message0405.txt Rem *****************************************AVDETECT************************************* Set Variable AVCOUNT to 0 Set Variable MCAFEE to N Set Variable NORTONCOUNT to 0 Set Variable AVCUMULATIVE to 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 Display Message "Warning: Systemworks Present" End Set Variable EXITQUIET to N Set Variable RELAUNCH to N If AVCUMULATIVE Does Not Contain "Norton Retail" then Wizard Loop Custom Dialog "No Norton" If EXITQUIET Equals "Y" then Exit Installation End End End Set Variable EXITQUIET to N Wizard Loop Custom Dialog "Welcome" If EXITQUIET Equals "Y" then Exit Installation End End Set Variable COUNTLINES to 0 If WINVERSION Greater Than or Equal "5.0" then Execute %sys%\cmd.exe /C dir /w "%cdrive%\Program Files\Common Files\Symantec Shared\SymSetup" > "%cdrive%\NET\sec_cd\sym.txt" (Wait) Else Execute %win%\command.com /C dir /b "%cdrive%\Program Files\Common Files\Symantec Shared\SymSetup" > "%cdrive%\NET\sec_cd\sym.txt" (Wait) End Read lines of file %cdrive%\NET\sec_cd\sym.txt into variable CURRENTLINE Start Block If CURRENTLINE Contains "{" then Set Variable UNINSTALLSTRING to %CURRENTLINE% Set Variable COUNTLINES to %COUNTLINES% End End Set Variable EXITQUIET to N If COUNTLINES Greater Than "1" then Wizard Loop Custom Dialog "More than one thing" If EXITQUIET Equals "Y" then Exit Installation End End End Registry Key SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce = %temp%\UOMcAfee\UOMI.EXE If File or Directory exists %CDRIVE%\Program Files\Common Files\Symantec Shared\SymSetup\%UNINSTALLSTRING% then Execute %CDRIVE%\Program Files\Common Files\Symantec Shared\SymSetup\%UNINSTALLSTRING% (Wait) Else Rem Older version of NAV- use RNAV? End Exit Installation