通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
来源:互联网 发布:天庭淘宝城 编辑:程序博客网 时间:2024/05/16 11:53
步骤:
1。运行--〉cmd:打开cmd命令框
2。在命令行里定位到InstallUtil.exe所在的位置
InstallUtil.exe 默认的安装位置是在C:/Windows/Microsoft.NET/Framework/v2.0.50727里面,所以你要在cmd里通过cd定位到该位置(cd C:/Windows/Microsoft.NET/Framework/v2.0.50727)
3。操作命令:
1). 安装服务命令:在命令行里输入下面的命令:
InstallUtil.exe Path/WinServiceName.exe
其中Path表示ServiceName.exe所在的位置,回车即可
2). 启动服务命令
net start ServiceName
ServiceName是真正的Service的名称(ServiceBase.ServiceName),跟.exe的名称可能一样,也可能不一样。如果不清楚,就到已安装的服务里面找到你的服务,右键属性里面看服务名称
3). 停止服务命令
net stop ServiceName
4). 卸载服务命令:在命令行里输入下面的命令:
InstallUtil.exe /u Path/WinServiceName.exe
其中Path表示ServiceName.exe所在的位置,回车即可
- C# windows服务:通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- C# windows服务:通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- C# windows服务:通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- C# windows服务:通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- C# windows服务:通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- 通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- 通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- 通过cmd命令安装、调试 卸载、启动和停止Windows Service(InstallUtil.exe)
- 通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- 通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- 通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- 用vs命令提示符来使用 Installutil.exe来安装和卸载Windows服务
- 服务(安装 卸载 启动 停止)命令
- Java通过CMD命令启动和停止外部应用程序
- windows服务(安装/启动/卸载/停止)批处理代码
- 不使用installutil.exe安装WINDOWS服务
- 不使用installutil.exe安装WINDOWS服务
- 不使用installutil.exe安装WINDOWS服务
- JQuery 常用方法基础教程
- JIRA' is already locked的解决方法
- CSS Master读书笔记:框模型
- 程序员的美:极致与疯狂
- Jmeter badboy
- 通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- 由安全沙箱冲突:LoaderInfo.content。
- 2010年的总结
- 就差一位就可以完成任务,就好下载资料了,麻烦加个好友。
- 从Service中启动Acitivity时向Activity中传递参数
- 将文字插入到光标处!!
- windows平台下vlc编译
- Winsock;TCP/IP编程;模板代码;VC++;单线程;
- Linux下各类TCP网络服务器的实现源代码