【Windows Service】Visual Studio 2013 创建 windows service 和 安装程序指南

下载和安装 Installer Project

https://visualstudiogallery.msdn.microsoft.com/9abe329c-9bba-44a1-be59-0fbf6151054d?SRC=VSIDE

 

创建 Windows Service 和安装工程

http://stackoverflow.com/questions/9021075/how-to-create-an-installer-for-a-net-windows-service-using-visual-studio

 

实现安装服务后自动运行

http://stackoverflow.com/questions/1036713/automatically-start-a-windows-service-on-install

 

实现安装程序的自动卸载老版本

  • In your main project
    • Increment your Assembly Version no
  • In your Visual Studio Setup project
    • Set "Remove Previous Version" to true
    • Increment the Version No. (this will change the product code for you too)

 

posted on 2015-07-31 11:06  CsharpStyle  阅读(262)  评论(0编辑  收藏  举报