.Net Windows服务安装过程
-
编写完成的windows服务会在项目目录下的bin/Debug下有个exe程序
-
以管理员身份运行cmd
-
找到目录C:\Windows\Microsoft.NET\Framework
-
找到项目对应的Framework版本
-
执行c:
-
执行 cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
-
执行installutil E:\xiaoyunchun\bin\Debug\Gate_scanning.exe
此处E:\xiaoyunchun\bin\Debug\Gate_scanning.exe 为你的项目地址下的 Debug中的exe程序地址 -
提示这样则安装成功
-
右键此电脑打开管理 打开服务 启动刚刚安装的windows服务即可