摘要: 在服务上添加安装程序,在serviceProcessInstaller1控件的Committed事件当中添加代码:System.ServiceProcess.ServiceController controller = new System.ServiceProcess.ServiceController("MyService"); controller.Start();MyService为服务名此操作之前要先设置下两个控件设置serviceProcessInstaller1控件的Account属性为“LocalSystem”设置serviceInstaller1控件的St 阅读全文
posted @ 2011-11-29 11:23 deepwishly 阅读(197) 评论(0) 推荐(0) 编辑