1:路径:C:\Windows\Microsoft.NET\Framework\v4.0.30319
2:执行指令:C:\Windows\Microsoft.NET\Framework\v4.0.30319>installutil E:\MonitorService\MonitorService\MonitorService\bin\Release\MonitorService.exe
installutil 安装windows service
原文:http://www.cnblogs.com/longdb/p/7120374.html