使用InstallUtil安装或卸载服务

使用InstallUtil安装或卸载服务

一.安装服务:

C:WindowsMicrosoft.NETFrameworkv4.0.30319InstallUtil.exe D:MyServices est.exe
pause

二.卸载服务:

C:WindowsMicrosoft.NETFrameworkv4.0.30319InstallUtil.exe -u  D:MyServices est.exe

pause

原文地址:https://www.cnblogs.com/zlp520/p/8624215.html