C# windows服务没有RunInstallerAttribute.Yes的公共安装程序

1.在视图状态 右键添加ServiceInstaller及ServiceProcessInstaller两个控件; 

2.将serviceProcessInstaller类的Account属性改为 LocalSystem 

原文地址:https://www.cnblogs.com/qi123/p/9481550.html