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..
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)
Please log in to answer
Posted by:
plangton
19 years ago
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
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
19 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.