WindowsService启动HttpServer,两者综合运用,且还包含了访问硬件(访问dll文件) 下面是安装脚本: @echo===安装CardReadService @setPORT=8181 @%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\installutil.exe%~dp0CardReadService.exe @scstartCardReadService%PORT% @echo===安装完成 @echo. @pause