all groups > dotnet component services > january 2005 >
You're in the

dotnet component services

group:

Create NT Service when registering



Create NT Service when registering Charles Oppermann
1/6/2005 7:40:47 PM
dotnet component services: I have an assembly with a single class derived from
System.EnterpriseServices.ServicedComponent that I've fully attributed.
Running REGSVCS against the assembly correctly installs the COM object and
the COM+ application, component and interfaces.

However, I also need to create a NT Service and associate it to the
application.

The COMAdminCatalog has the ICOMAdminCatalog2::CreateServiceForApplication()
method, but I cannot find a corresponding .NET way of doing this.

Right now I'm calling the unmanaged COM object, but if there is a .NET way
to do it, I'd be very curious.

Thank you!

Re: Create NT Service when registering Odirley Bueno do Amaral
1/22/2005 11:53:27 PM

Charles Oppermann <chuckop@zettasystems.askme> escreveu nas notícias de
mensagem:ed#2tqG9EHA.3820@TK2MSFTNGP11.phx.gbl...
[quoted text, click to view]

Re: Create NT Service when registering Donovan Hackett
2/6/2005 11:12:47 PM
I found the following which should do all you need in .NET:

http://blogs.msdn.com/dparys/archive/2005/01/28/362261.aspx

*** Sent via Developersdex http://www.developersdex.com ***
Re: Create NT Service when registering Charles Oppermann
2/14/2005 9:24:07 AM
[quoted text, click to view]

Looks helpful, I'll check into it. Thanks!
--
Charles Oppermann, http://weblogs.asp.net/chuckop/

AddThis Social Bookmark Button