Install a Windows Service programmatically

V

Vince Keller

I dont know if this is the correct newsgroup to post questions on Windows
Service.
I am trying to install and uninstall a Windows Service programmatically.

As far as I know, there isnt a class in .NET FCL which supports doing that.
The ServiceController class starts/stops an installed service but doesnt
install a service. Is there a way to install/uninstall a service
programmatically (not using the Installer) ?

Thanks.
 
V

Vince Keller

Thank you very much.
I was planning on writing the Win32 Interop code... but your post makes it
redundant.

:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top