软件更新 [英] software update
问题描述
我想了解如何编写软件更新的应用程序?
i want general idea about how to write the software update for an application?
该技术是简单的像VC ++或.NET?..
which technology is simple like VC++ or .Net?..
我只需要这个念头在短暂的。
i just need the idea in brief.
推荐答案
根据您指的是一个软件自动更新假设以下的答案。即启动应用程序时,你做一个检查,看看是否有可用的更新版本,并自动下载/安装新版本,如果是这样的。
The following answer based on the assumption that you are refering to the auto-update for a software. Namely when launching your application you do a check to see if there is newer version available, and automatically download/install the new version if it is the case.
微软的ClickOnce是最简单的方式,如果你的应用程序是基于.NET。 这里是,你可以开始一个链接。它可以用于最小化的努力。
Microsoft ClickOnce is the simplest way if your application is .NET based. Here is a link that you can start with. It can be used with minimize effort.
这是用C ++从零开始实现的例子可以发现这里。
An example of implementation from scratch using C++ can be found here.
所有这些样的想法需要解决以下几个问题:
All these kind of ideas needs to solve the following problems:
- 添加机制,你的软件唯一地标识版本informtaion。
- 把可用的(最新的)软件版本信息在一些地方,客户端可以访问(可能和HTTP服务器)
- 在您的应用程序,你需要与客户端软件版本进入公版的信息和比较。
- 实施更新功能。这包括下载的二进制文件。关闭当前应用程序并运行安装。然后重新启动应用程序。
请注意,对于步骤4它需要关闭运行的应用程序,并重新启动它安装完成后。这意味着你可能必须这样做,在另一个进程。
Note that for the step 4 it needs to close the running application and restart it after installation is done. This implies that you may have to do it in another process.
这篇关于软件更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!