摘要: http://blog.csdn.net/lizhizhe2000/archive/2006/09/19/1249209.aspxusing System;using System.Runtime.InteropServices;namespace EAE.MyServiceInstaller{class ServiceInstaller{ #region Private Variables private string _servicePath; private string _serviceName; private string _serviceDisplayName; #endregi 阅读全文
posted @ 2011-03-11 18:03 Ken-Cai 阅读(313) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/anjou/archive/2008/05/20/1203290.html使用C#代码安装 Windows 服务(不使用InstallUtil) usingSystem;usingSystem.Collections.Generic;usingSystem.ServiceProcess;usingSystem.Configuration.Install;staticclassProgram{///<summary>///应用程序的主入口点。///</summary>[STAThread]staticvoidMain(stri 阅读全文
posted @ 2011-03-11 17:58 Ken-Cai 阅读(439) 评论(0) 推荐(0)