Jump to content

Can I Delete Programs Like This?


Recommended Posts

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 machine

Problem is alot of these machines are come with McAffee AntiSpy and McAffee Security Center

This screws up our automation process because when installing Norton it questions the Security Center

Basically 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

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 by InTheWayBoy
Link to comment
Share on other sites

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


Key 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 Pervasive

start C:\WINDOWS\IsUninst.exe -fC:\PVSW\DeIsL1.isu -c"C:\PVSW\W32PTKUN.DLL" -mpsql.mif -a

I 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.

  • Create New...