By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,650 Members | 1,823 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,650 IT Pros & Developers. It's quick & easy.

Install windows service from code

P: n/a
Ant
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
Nov 3 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Maybe you can get help here...
http://msdn.microsoft.com/library/de...classtopic.asp

"Ant" wrote:
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

Nov 3 '05 #2

P: n/a
Ant wrote:
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.
Nov 3 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.