phillyman2004 Posted September 12, 2005 Share Posted September 12, 2005 At my job everyday i have to work on new machines.....we have an automatic batch script that runs thru and does tweaks and installs programs on each machineProblem is alot of these machines are come with McAffee AntiSpy and McAffee Security CenterThis screws up our automation process because when installing Norton it questions the Security CenterBasically what i want to know is ...Can i write a short script to Kill the Mcafee processes....Remove the Registry Entries....and Remove the Directory Tree ...as a solution?If i remove all 3 of those things i should be ok right ? Link to comment Share on other sites More sharing options...
InTheWayBoy Posted September 12, 2005 Share Posted September 12, 2005 (edited) I probably wouldn't try to manually uninstall virus protection. You could try to script something that would initiate the uninstall process...maybe AutoIT or something that you can program to 'click' the appropriate buttons.The problem with manually removing it is that it's almost a guarantee you're gonna miss something, leaving it half-installed. And by then you have no chance of uninstalling it unless you reinstall it first...and even then, that may not work. Edited September 12, 2005 by InTheWayBoy Link to comment Share on other sites More sharing options...
chilifrei64 Posted September 12, 2005 Share Posted September 12, 2005 What you could do is call the uninstall string from the registry. Not sure how McAfee works.. this may be a static string or a dynamic string. Basically you would look at the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\UninstallKey of the registry and find the Keys associated with McAfee and pull their uninstall string and run that in the batch file. I used this method for uninstalling an old version of Pervasive SQL Client from about 50 machines.. Here is a copy of the script I ran to initiate the uninstall of Pervasivestart C:\WINDOWS\IsUninst.exe -fC:\PVSW\DeIsL1.isu -c"C:\PVSW\W32PTKUN.DLL" -mpsql.mif -aI ran this from a batch script..One thing I did encounter was Windows 2000 acted differently to this one because the uninstall string references C:\Windows as opposed to C:\Winnt.. So i guess just watch out for that one.. Link to comment Share on other sites More sharing options...
HyperHacker Posted September 13, 2005 Share Posted September 13, 2005 Forcibly uninstalling an antivirus may leave your system in an unstable condition, as they often use device drivers and such and get buried really deep in the system.If you have the option, just dump McAfee altogether. Link to comment Share on other sites More sharing options...
chilifrei64 Posted September 13, 2005 Share Posted September 13, 2005 Just to clarify.. calling the uninstall string using a batch file is the same as calling the uninstall from add/remove programs. When ran... it executes the same uninstall process. This is not a forced uninstall process Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now