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


Please log in to comment

Community Chosen Answer


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..
Answered 04/11/2005 by: dj_xest
Fifth Degree Black Belt

Please log in to comment
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


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..
Answered 04/11/2005 by: charan
Orange Belt

Please log in to comment
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)


Answered 04/11/2005 by: dj_xest
Fifth Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity