如何自动更新没有ClickOnce的应用程序? [英] How to automatically update an application without ClickOnce?

查看:107
本文介绍了如何自动更新没有ClickOnce的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我正在开展的项目,我不允许使用 ClickOnce 。我的老板希望程序看起来真的(有安装程序等)。

For the project I am working on, I am not allowed to use ClickOnce. My boss wants the program to look "real" (with an installer, etc).

我已经安装了 Visual Studio 2012 专业版,并且一直在使用 InstallShield 安装程序,这绝对是很好的安装程序,但我不知道如何使应用程序自动更新(即启动时,检查以确保它正在使用最新版本)。

I have installed Visual Studio 2012 Professional, and have been playing around with the InstallShield installer, and it definitely makes nice installers, but I can't figure out how to enable the application to "auto-update" (that is, when it starts up, checks to make sure that it is using the latest version).

我被要求对代码进行微小的更改 - 切换加法减法,而我真的不想人们必须卸载旧版本,然后必须重新安装新版本,每次我进行这样的一个小的更改。

I have been asked to make a tiny change to the code - switching an addition to a subtraction, and I don't really want people to have to uninstall the old version, and then have to reinstall the new version every time I make a small change like this.

我如何使应用程序检查更新并安装它们?或者这不可能(或不容易)?

How can I make the application check for updates, and install them? Or is this not possible (or not easy)?

推荐答案

有很多问题已经有了,所以我会参考你要这些。

There are a lot of questions already about this, so I will refer you to those.

有一件事你要确保防止需要卸载,是你每个使用相同的升级代码释放,但更改产品代码。这些值位于Installshield项目属性中。

One thing you want to make sure to prevent the need for uninstallation, is that you use the same upgrade code on every release, but change the product code. These values are located in the Installshield project properties.

某些参考文献:

  • Auto update .NET applications
  • Auto-update library for .NET?
  • Auto update for WinForms application
  • Suggest a method for auto-updating my C# program
  • Automatic update win application

这篇关于如何自动更新没有ClickOnce的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆