从命令行运行InstallUtil.exe注册window服务:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe C:\myService.exe
从命令行运行InstallUtil.exe卸载window服务:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe /u C:\myService.exe