下载和安装 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)

 

相关文章:

  • 2022-02-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2021-08-26
  • 2021-11-14
  • 2021-05-15
猜你喜欢
  • 2022-12-23
  • 2021-10-21
  • 2022-12-23
  • 2021-09-09
  • 2021-08-12
相关资源
相似解决方案