首先,需要在环境变量的path中加入Install Util的路径:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
然后进入你service所在的目录:
InstallUtil xxx.exe 部署服务
InstallUtil /u xxx.exe 卸载服务
首先,需要在环境变量的path中加入Install Util的路径:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
然后进入你service所在的目录:
InstallUtil xxx.exe 部署服务
InstallUtil /u xxx.exe 卸载服务