Windows service 安装命令

installutil.exe + 服务程序文件

%SystemRoot%Microsoft.NETFrameworkv4.0.30319installutil.exe 文件全名带路径

执行完后到"服务“里启动即可。或都执行cmd 命令(Net Start 服务名称)

完整点的:(不需要中括号)

%SystemRoot%Microsoft.NETFrameworkv4.0.30319installutil.exe [D:Service]
Net Start [服务名称]
sc config [服务名称] start= auto
pause
原文地址:https://www.cnblogs.com/Qiozi/p/14147979.html