注册和卸载window service

自己开发的windows service编译之后会生成的exe文件,不能直接运行,必须通过工具注册进系统的Service。

使用cmd运行命令执行注册和卸载:

注册service:

C:\Windows\Microsoft.NET\Framework\v4.0.30319>installutil D:\MyService.exe

卸载Service:

C:\Windows\Microsoft.NET\Framework\v4.0.30319>installutil /u D:\MyService.exe

posted @ 2014-05-19 14:56  yuejin  阅读(331)  评论(0编辑  收藏  举报