摘要:
最近有个项目需要使用windows 服务 来做(其实原来也有很多项目有这个需求 只是偷懒用windows应用程序来做了 必须登录才能运行)这一块 一直 心存遗憾 这一次 决心要用 真正的windows 服务 来做第一步: 添加windows 服务第二步: 在windows 服务 设计页面上 点击右键 (安装服务) 将会生成一个新的安装文件(ProjectInstaller.cs)using System;using System.Collections;using System.Collections.Generic;using System.ComponentModel;using Syst 阅读全文