您的位置:首页 > 其它

Windows 安装服务 的两种方式

2018-10-17 15:52 218 查看

第一种   -  安装服务时自定义服务名称:
(注意 binpath= 和路径之间的那个空格)
sc create 服务名称  binpath= "D:\Service.exe" displayname= "显示名称" depend= Tcpip start= auto (启动类型)


第二种  -   安装目录服务:

C:\Windows\Microsoft.NET\Framework\v4.0.30319   下 2.0也有
InstallUtil.exe D:\Service.exe

卸载服务

InstallUtil.exe /u D:\Service.exe

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: