Install.bat   安装服务:这里需要指定可执行文件名称(exe)
C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtil /LogFile="" /InstallStateDir="" WSSetupWithBat.exe
pause

 

Start.bat     启动服务:这里指定的是图片设置的服务名称
net start WSSetupWithBat
pause

 

Stop.bat      停止服务:这里指定的是图片设置的服务名称
net stop WSSetupWithBat

 

Uninstall.bat 卸载服务:这里还是需要指定可执行文件的名称(exe)
C:\Windows\Microsoft.NET\Framework\v2.0.50727\InstallUtil /u /LogFile="" /InstallStateDir="" WSSetupWithBat.exe
pause

 

Windows服务开发之安装程序的设置Windows服务开发之安装程序的设置

相关文章:

  • 2021-05-16
  • 2022-01-05
  • 2022-12-23
  • 2022-01-01
  • 2021-11-17
  • 2021-12-09
  • 2022-12-23
猜你喜欢
  • 2022-01-01
  • 2021-10-29
  • 2022-01-01
  • 2021-06-03
  • 2021-10-11
  • 2022-02-28
  • 2021-11-24
相关资源
相似解决方案