|
Thanks Guys! It's working now.
I had tried some of the other script methods ie: GetFileVersion but it hadn't worked.
I've given up on the vplogon.bat method and debuged my read value problems. It's working like a charm now.
I'll include the code in case it helps someone else out in the future. Almost all of it was pieced together from other members scripts. Thanks to all of you..
;-------------------------------------------------------------------------------- ; ; Norton Antivirus Install/Check ; ;-------------------------------------------------------------------------------- ; ;First we check to see if user is logging on to the File server ; $PRODUCTTYPE = READVALUE("HKEY_LOCAL_MACHINE\SYSTEM\CURRENTCONTROLSET\CONTROL\PRODUCTOPTIONS","PRODUCTTY PE") if $PRODUCTTYPE = "ServerNT" GOTO FINISH ENDIF ; ;Now we check in in NoNav group. If in Group, install will exit. ; IF INGROUP ("NoNav") GOTO FINISH ENDIF ; ;Now we check installed version ; ? ? "Checking Norton Antivirus........" Sleep 3 ; $currentbuildver = "7.60.00.926" $NAVHome = ReadValue("HKEY_LOCAL_MACHINE\software\INTEL\LANDesk\VirusProtect6\CurrentVersion\", "Home Directory") ; If GetFileVersion($NAVHome +"\vpc32.exe","ProductVersion") = $currentbuildver goto FINISH ENDIF ; ; If version not equal, newer version is installed ; :NAVINST ; RUN "%COMSPEC% /E:1024 /C \\cazfsm01\distribute\nav732.exe" ; Call NAVCE Install Package ; ; MESSAGEBOX("A newer version of Anti-Virus software has been found on the server. Please wait while the newer version installs on your PC. Please note, the PC will automatically reboot once installation is complete. Approximatly 30 to 60 seconds", "Norton AntiVirus Installation...",64,45) ; :FINISH
|