Friday, August 19, 2005

Installations and Virus Scan Applications

We have McAfee VirusScan Enterprise and there seems to be both taking longer to install applications like AutoCAD and ADT when the On-Access Scan is active and there might even be some problems that are related to having the VirusScan on during the installation. The problem is that policies are checking of VirusScan is off and puts in on again after a minute or two. What I did was the following. I have a VBScript that runs the installation including several settings and other customizations. The first thing I do is to run another VBScript using: WshShell.Run """\\share\StopVirusScan.vbs""",1,False "False" in the above row is used to allow the main script to continue. Below is the content of StopVirusScan.vbs:

on error resume next Set WshShell = CreateObject("WScript.Shell") for i=1 to 20 WshShell.Run "net stop ""Network Associates McShield""",0,True WScript.sleep 60000 next

It loops several times and every minute it stops the service for the VirusScan. This continues long enough for the installation to take place.


Some of the latest blog posts

Subscribe to RSS headline updates from:
Powered by FeedBurner