/build/static/layout/Breadcrumb_cap_w.png

Scriopt using taskkill doesn't work in msi

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 (2)

Posted by: plangton 18 years ago
Second Degree Blue Belt
0
Hi Charan,

Any particular reason you aren't using the Service control to stop the service? Or even, if you must use a command line, using a net stop command?

I would say, if you have to kill the task rather than use net stop or the service control table, that its running in a context that doesn't have rights to terminate the process - are you running it in the Deffered System context?

Hope that helps

Rgds

Paul
Posted by: vin_hegde_94 18 years ago
Senior Yellow Belt
0
Since the services username are SYSTEM, I can't use net/sc to start/stop services..

Is there any script that works inside an msi to kill a system service..
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