C# windows服务没有RunInstallerAttribute.Yes的公共安装程序 1.在视图状态 右键添加ServiceInstaller及ServiceProcessInstaller两个控件; 2.将serviceProcessInstaller类的Account属性改为 LocalSystem