使用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
为了明天能幸福,今天付出再多也不后悔。