[转]C# 安装时弹出设置服务登录窗口

本文转自:http://blog.csdn.net/prince_jun/article/details/38435887

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

选中serviceProcessInstaller1,右键 属性,设置如下:

原文地址:https://www.cnblogs.com/freeliver54/p/7026304.html