Help - Search - Members
Full Version: McAfee removal scripted
Kaspersky Lab Forum > English User Forum > Protection for Small and Medium Businesses
belangerj
I am trying to remove McAfee Agent 4.0 and Enterprise 8.0i and 8.5i via a login script. I have created a task in Administration Kit 8.0 to remove incompatible applications, which works just fine. I then have another task to install Kaspersky that runs after the removal task completes.

I would like to be able to run this removal task as a batch file. The files created for this task are located at \\server\klshare\Uninstall\737c711d-d711-4fd6-8cb8-adf1e32c5408\setup.exe. It appears I cannot just run this from this location. Is there a command line switch I need to use? I have also tried copying all these files to a custom folder, with similar results.

For what it's worth, just checking remove incompatible applications for a regular application install does not work. It looks like a reboot is needed before Kaspersky can be installed, hence the need for a separate removal task.
belangerj
QUOTE(belangerj @ 19.10.2009 10:57) *
I am trying to remove McAfee Agent 4.0 and Enterprise 8.0i and 8.5i via a login script. I have created a task in Administration Kit 8.0 to remove incompatible applications, which works just fine. I then have another task to install Kaspersky that runs after the removal task completes.

I would like to be able to run this removal task as a batch file. The files created for this task are located at \\server\klshare\Uninstall\737c711d-d711-4fd6-8cb8-adf1e32c5408\setup.exe. It appears I cannot just run this from this location. Is there a command line switch I need to use? I have also tried copying all these files to a custom folder, with similar results.

For what it's worth, just checking remove incompatible applications for a regular application install does not work. It looks like a reboot is needed before Kaspersky can be installed, hence the need for a separate removal task.



As an addition a setup.log file is created, with the following:
[ResponseResult]
ProcessResultCode=-1
Tybilly
Hello,

Citation (belangerj @ 19.10.2009 17:57) *
I am trying to remove McAfee Agent 4.0 and Enterprise 8.0i and 8.5i via a login script. I have created a task in Administration Kit 8.0 to remove incompatible applications, which works just fine. I then have another task to install Kaspersky that runs after the removal task completes.


You can chain these 2 tasks then the deployment of KAV will start automatically once the removal of McAfee is over (a reboot is necessary).

Citation (belangerj @ 19.10.2009 17:57) *
For what it's worth, just checking remove incompatible applications for a regular application install does not work. It looks like a reboot is needed before Kaspersky can be installed, hence the need for a separate removal task.


Yes I noticed this error too. That's because a component from McAfee (Filter driver) is still active and is marked as to be "deleted after reboot".
belangerj
QUOTE(Tybilly @ 19.10.2009 11:59) *
Hello,
You can chain these 2 tasks then the deployment of KAV will start automatically once the removal of McAfee is over (a reboot is necessary).
Yes I noticed this error too. That's because a component from McAfee (Filter driver) is still active and is marked as to be "deleted after reboot".


Yes, that is what I have done, but I was hoping to kick this off from a batch file, not through the Administration Console. It works fine for a couple of installations, but I'm trying to remove about 200 installations and would like to do this through a login script, without having to specifying which users or machines this will run on.
belangerj
QUOTE(belangerj @ 19.10.2009 13:57) *
Yes, that is what I have done, but I was hoping to kick this off from a batch file, not through the Administration Console. It works fine for a couple of installations, but I'm trying to remove about 200 installations and would like to do this through a login script, without having to specifying which users or machines this will run on.

I believe I have solved my issue. After creating the uninstall task, I created an installation package from the setup.exe created by the task. This created it's own package, and running lsexec.exe from there does the trick.
Tybilly
Good to know, thank you for this information.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.