C#Windows 服务的安装说明

安装/卸载的步骤:

1 . .点击 开始,运行中输入cmd,获取命令提示符win7需要已管理员的身份启动,否则无法安装

2. 输入 : cd C:WindowsMicrosoft.NETFrameworkv4.0.30319 回车
切换当前目录,

3.安装: 输入

InstallUtil.exe

E:svn_workspaceOS.PushServiceinDebug OS.PushService.exe 回车
说明:E:svn_workspaceOS.PushServiceinDebug OS.PushService.exe表示项目生成的exe文件位置

完成

4..卸载: 输入

E:svn_workspaceOS.PushServiceinDebug OS.PushService.exe  - u 回车

安装图解:

卸载图解:

原文地址:https://www.cnblogs.com/cl1006/p/6404866.html