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

安装:%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe ServiceTest.exe

启动:Net Start service1

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

卸载:%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe /u ServiceTest.exe

posted @ 2017-02-08 11:56  向萧  阅读(282)  评论(0)    收藏  举报