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

Comments

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.

Answers

0
Hi,

I you ar using Wise for Windows Installer there is a services tab in the Installation Expert. There you can tell what services should do at deinstall.

It's simple:

click Add | Service Control
Type the name of the service.

Ive tested it with an dummy install. At install anly a text was placed. At de-install the spooler services was stopped.

Edwin
Answered 04/19/2005 by: Siebrasse
Senior Yellow Belt

Please log in to comment
0
I am using Installshield Devstudio 5.5

The services i am concerned with are of 'Service Type 1', those can't be mapped to service tables when i build ism. they have to be stored in registries n they will be active only after Rebooting the machine..

Since the processes spawn by services have imagename SYSTEM.
It can't be stopped/killed using NET/SC commands..
Answered 04/20/2005 by: charan
Orange Belt

Please log in to comment
0
Hi...

Did you solve this?? I have the same situation now....
Answered 12/10/2008 by: sumarchana
Orange Senior Belt

Please log in to comment
0
I imagine, with over 3 years having elapsed between today and the original post, that either the issue was solved or worked around.

- Please don't resurrect old threads.
- If you took the time to read other posts on the forum, you would have learned that you cannot just kill kernel services. Think about it...a system-protection program which could just be killed with TaskKill wouldn't be a great deal of use, would it? You need to uninstall, then reboot.
Answered 12/10/2008 by: VBScab
Red Belt

Please log in to comment
0
VBScab,

I am just reading at the older posts before i could post a message cos that saves everyone's time.I am still on my way to solve the issue.

Anywayz i m not using taskkill to kill the services. During Uninstallation a file called LogFile00.dat is not getting removed it is held by ScreenAgent.exe running background. When i remove it manually i can unisntall the application.
I remved this file from the package. Its getting created in runtime and troubling uninstallation.
I am just trying with the following code..

strComputer = "."
strProcessToKill = "ScreenAgent.exe"
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colProcess = objWMIService.ExecQuery _
("Select * from Win32_Process Where Name = '" & strProcessToKill & "'")
count = 0
For Each objProcess in colProcess
objProcess.Terminate()
count = count + 1
Next

wscript.echo "Killed " & count & " instances of " & _
strProcessToKill & "on " & strComputer
Answered 12/10/2008 by: sumarchana
Orange Senior Belt

Please log in to comment
0
Anywayz i m not using taskkill to kill the services. True, but you're still trying to kill the process, which you can't do in this case.
Answered 12/10/2008 by: VBScab
Red Belt

Please log in to comment
0
True.. I coud not... can i control start or stop of services through registries?
I damn sure if i kill ScrennAgent.exe i can uninstall without any issues.
Answered 12/10/2008 by: sumarchana
Orange Senior Belt

Please log in to comment
0
I tried through regsitries manually by stopping services & rebooted the machine. Still the ScreenAgent.exe is running and blocking the roads.......
Answered 12/10/2008 by: sumarchana
Orange Senior Belt

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