RE: How to Stop Serviced Component so Uninstall removes it completely

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Robert,

>......
>I know how to tell the installer project to do something but I don't
>know how you shutdown a component like this programatically.
>

If you want to shut down and remove a component service programmatically,
you can use Component Services Administration (COMAdmin) objects to acheive
it, I suggest you manipulate the COMAdmin objects in a vbs file in order
you can call it in a custom action in your installer program.

For details of how to shut down and remove a component service in a vbs
file, please refer to the following MSDN article and related newsgroup
thread, which has a helpful sample on this issue:

Automating COM+ Administration
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cossdk/html
/f302eb02-2ef5-42ee-a18f-59f7e60b38df.asp

Update a COM+ DLL in Component Services on Win2K
http://groups-beta.google.com/group/microsoft.public.vb.com/browse_thread/th
read/9cca0e35fa656695/27f2b46be706beaa?lnk=st&q=uninstall+%22component+servi
ces%22+vbscript&rnum=1&hl=en#27f2b46be706beaa


Hope this helps!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

.