Install windows service from code

G

Guest

Does anyone have an example of how to install a windows service from .net
code. I've seen PInvoke versions, but it should be able to be done using
System.Configuration.Install.Installer as the InstallUtil does.
Thanks
 
J

John A. Bailo

Ant said:
Does anyone have an example of how to install a windows service from .net
code. I've seen PInvoke versions, but it should be able to be done using
System.Configuration.Install.Installer as the InstallUtil does.
Thanks

There's a walkthough in the SDK documentation.

You can drag/drop the installers into your service.


Actual install is done with the

installutil.exe

Utility provided w/the SDK.
 

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