McAffe uninstall problem .. Error 1306
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 (8)
Please log in to answer
Posted by:
Siebrasse
19 years ago
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
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
Posted by:
charan
19 years ago
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..
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..
Posted by:
anonymous_9363
15 years ago
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.
- 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.
Posted by:
sumarchana
15 years ago
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
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
Posted by:
anonymous_9363
15 years ago
Posted by:
sumarchana
15 years ago
Posted by:
sumarchana
15 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.