http://jingyan.baidu.com/article/fa4125acb71a8628ac709226.html
安装
cmd
输入 InstallUtil.exe E:TestAppWinformWinServiceTestWinServiceTestinDebugWinServiceTest.exe 回车
卸载
sc delete 服务名