安装服务时系统不要弹出设置服务登录窗口:在程序中将serviceProcessInstaller类的Account属性设置为LocalSystem 选中serviceProcessInstaller1,右键 属性,设置如下: