1.在“运行”里,输入cmd,进入控制台命令窗口:

2.进入“C:\Windows\Microsoft.NET\Framework\v4.0.30319”,如下所示:

3.安装Windows Service,输入InstallUtil.exe 和 Windows Service 安装程序路径

4.卸载Windows Service, 输入InstallUtil.exe, Windows Service 安装程序路径,-u

以上Windows Service 是基于.NET FrameWork 4平台的