使用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

相关文章:

  • 2022-02-25
  • 2021-06-08
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2021-09-04
  • 2021-10-27
  • 2021-12-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-10
  • 2022-12-23
  • 2021-11-20
  • 2021-12-23
  • 2021-12-27
相关资源
相似解决方案