InstallUtil.exe CMD安装服务
1、InstallUtil.exe和安装服务放在同一文件夹下
2、DOS命令在安装目录 输入 cmd 进入安装目录
3、安装服务 InstallUtil.exe 服务文件名
InstallUtil.exe TestTestService.exe
4、启动服务 net start 服务名
net start MyServiceName
5、停止服务 net stop 服务名
net stop MyServiceName
6、卸载服务 InstallUtil.exe /u 服务文件名
InstallUtil.exe /u TestTestServicee.exe
通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
于 2023-08-30 17:52:27 首次发布