windows Service程序的安装、启动、卸载命令

安装:%SystemRoot%Microsoft.NETFrameworkv4.0.30319installutil.exe ServiceTest.exe

启动:Net Start service1

设置为自动启动:sc config service1 start= auto

卸载:%SystemRoot%Microsoft.NETFrameworkv4.0.30319installutil.exe /u ServiceTest.exe

原文地址:https://www.cnblogs.com/dayang12525/p/6377557.html