I have had a number of e-mail requests for this section of the script.

So.. here it comes.

quote:

$VIR = READVALUE("HKEY_LOCAL_MACHINE\Software\Symantec\SharedDefs","NAV_50_QUAR") ; $VirusInstallRaw
$VIM = SUBSTR($VIR,(LEN($VIR)-11),8) ; $VirusInstalledModified
$Vins = Existkey("HKEY_LOCAL_MACHINE\Software\Symantec\SharedDefs") $ VirusInstalledatall?
$VSR = GetFileTime("\\SERVERNAME\NavNet32\NAVUP\NavDef4x\naveng32.dll") $VirusSourceRaw
$VSM = SUBSTR($VSR,1,4)+SUBSTR($VSR,6,2)+SUBSTR($VSR,9,2) $VirusSourceMonidifed
if $VSM=$VIM OR $Vins<>0 ; IF $VSM (Source ver) = $VIM (Install ver) do nothing!
color w+/b
CLS
BIG "Anti-Virus"
SMALL
color w+/b
at (8,1) "You have the current version of Norton AntiVirus installed. (Version " + $VSM + ")"
sleep 2
else ; Otherwise, Go and install/update Norton's.
; rem Norton AntiVirus installation
color w+/b
CLS
BIG "Anti-Virus"
SMALL
color w+/b
at (8,1) "You do not have Norton AntiVirus installed, or do not have current updates"
at (9,1) "Correct version: " + $VSM + " Your version: " + $VIM
at (10,1) "Installation should take about 5 minutes. (Up to half an hour for dialin)"
at (11,1) "After Norton AntiVirus is installed/updated it will then scan every file."
at (13,15) "Please wait while this takes place..............."
run "\\SERVERNAME\navnet32\navup\navadmin\navcheck /w32:\\SERVERNAME\navnet32\navup\navadmin\custom.nns"
endif

I think that's pretty much self-explanatory. There's a few extra comments there that should make things a little more inteligible.

Enjoy!

------------------
Paul Moxey
POS & Senior Network Administrator
Taubmans Pty Ltd
Paul_Moxey@taubmans.com.au

_________________________
Paul Moxey POS & Senior Network Administrator BarloworldCoatings (AUST) Pty Ltd