开发者

How To Install A Windows Service In .NET?

开发者 https://www.devze.com 2022-12-15 11:12 出处:网络
I have created a console application in .Net 2.0 (C#) and want to create an installer that will install the application as a Windows Service.

I have created a console application in .Net 2.0 (C#) and want to create an installer that will install the application as a Windows Service.

I have never created an installer before but I am reading a few articles on the subject. I would appreciate any suggestions or links from those with some experience in this area.

Thanks.

UPDATE: I am currently looking at http://justinjmoses.wordpress.com/2008/03/27/visual-studio-2008-standard-vs-professional/ to work around the fact that the Windows Service Application template is not included in VS 2开发者_开发百科008 Standard.

Russ Taylor also has a default Windows Service project available for download at http://russtaylor.co.uk/2009/01/writing-a-windows-service-in-visual-studio-2008-standard/.


You should create a new "Windows Service Project" in Visual Studio.

I think this is a good starting point:

Introduction to Windows Service Applications

Apparently, the Windows Service Application Template is not available in the standard edition of Visual Studio, but maybe this can help:

How to: Write Services Programmatically


You want ServiceInstall in WiX: http://www.tentaclesoftware.com/blog/archive/2009/01/01/21.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号