使用InstallUtil安装或卸载服务

使用InstallUtil安装或卸载服务

一.安装服务:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe D:\MyServices\test.exe
pause

二.卸载服务:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe -u  D:\MyServices\test.exe

pause

posted @ 2018-03-22 15:34  土豆哥  阅读(5340)  评论(0编辑  收藏  举报