C# Windows Service Setup

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

C# Windows Service Setup

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

C# Windows Service Setup

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

C# Windows Service Setup

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

C# Windows Service Setup

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

 

转载于:https://www.cnblogs.com/PerfectSoft/archive/2012/04/27/2474133.html