/build/static/layout/Breadcrumb_cap_w.png

McAffee uninstall problem

Hi,

I have to stop a service named FireSvc.exe ( Its a system process) to uninstall my application McAffee Desktop Firewall 8.0. I wrote a custom action using (VBScript )Taskkill command but the script works fine outside the msi. Once i embed the custom action (VBscript) into MSI,it doesn't kill the process. PLz if any one has knowledge how to go abt it plz help me out..

If i don't kill the the process i get Error 1306 , another application is accessing the file 'xx'
So can't delete the file..

Plz help me out..

0 Comments   [ + ] Show comments

Answers (3)

Posted by: dj_xest 19 years ago
5th Degree Black Belt
1
Charan...

Find the name of the service and use Net.exe or Sc.exe to stop the service..

Example: net.exe stop [name of service]; sc.exe stop [name of service]

YOu can call this through your vbscript then..
Posted by: charan 19 years ago
Orange Belt
0
Hey thanks for ur response...

I tried those before but i can't stop the service using those command..
I notice that in the task manager view.. the process FireSvc.exe is listed, username of which is SYSYTEM. If i end the process i have a chance of uninstalling my application, but no command (sc, net) is helping me do that. However Taskkill helped me kill the process, but as i told u once i embed the script into my msi, the command doesn't kill the process..
Posted by: dj_xest 19 years ago
5th Degree Black Belt
0
Charan, you can try this vbscript..
------------------------------
On Error Resume Next

Dim WshShell, Return
Set WshShell = CreateObject("WScript.Shell")

Return = WshShell.Run("c:\windows\system32\wbem\wmic.exe process where name="FireSvc.exe" call terminate",true)

Wscript.Quit

--------------------------
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ