发布Windows Service的方法
1、 在默认窗口Service1中右键Add Install,自动生成两个类。
2. 修改serviceInstaller1的属性:
a)ServiceName =”FirstService”; //设置服务名称
b)StartType = Automatic; //启动的模式有三种:“自动”、“手动”、“禁用”。事实上,在“我的电脑”的“管理”->“服务”中,还有一种模式:“自动(延迟启动)”
c)
发布Windows Service的方法
1、 在默认窗口Service1中右键Add Install,自动生成两个类。
2. 修改serviceInstaller1的属性:
a)ServiceName =”FirstService”; //设置服务名称
b)StartType = Automatic; //启动的模式有三种:“自动”、“手动”、“禁用”。事实上,在“我的电脑”的“管理”->“服务”中,还有一种模式:“自动(延迟启动)”
c)