Thanks, I was able to get this to work by overriding the OnBeforeUninstall
event in a custom installer in the project and adding the below:
' Instantiate a COMAdminCatalog object.
Dim objCatalog As COMAdminCatalog = CreateObject("COMAdmin.COMAdminCatalog")
objCatalog.ShutdownApplication("Analyzer Control Publisher Application")
Works great.
Thanks.
R-
""Gary Chang[MSFT]"" wrote:
[color=blue]
> Hi Robert,
>[color=green]
> >......
> >I know how to tell the installer project to do something but I don't
> >know how you shutdown a component like this programatically.
> >[/color]
>
> 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/de...us/cossdk/html
> /f302eb02-2ef5-42ee-a18f-59f7e60b38df.asp
>
> Update a COM+ DLL in Component Services on Win2K
>
http://groups-beta.google.com/group/...owse_thread/th
> read/9cca0e35fa656695/27f2b46be706beaa?lnk=st&q=uninstall+%22component+s ervi
> 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...sdn/nospam.asp
> &SD=msdn
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>[/color]