自动更新的最佳做法 [英] Best practice for autoupdates

查看:92
本文介绍了自动更新的最佳做法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于基于桌面的应用程序,执行自动更新的最佳实践是什么?当前,我们下载所有文件,然后将其复制并注册(如果是com dll)到各自的目录中.

For desktop based applications, what are best practices to perform auto updates? Currently, we download all files, then copy and register (if com dll) to their respective directories.

我查看了Google Chrome浏览器的更新方法.看来,它首先将压缩文件下载到目录中,然后将所有文件解压缩.此外,他们还有一个似乎用于执行更新的安装应用程序.另外,他们创建了一个映射到更新版本的目录,例如1.0.154.43,但是保留了旧版本的目录.

I looked at Google Chrome update method. It seems that it first downloads a zipped file into a directory, and then unzips all the files. Also, they have a setup application which seems to be used to do the update. Additionally, they create a directory mapped to update version like 1.0.154.43, but they keep the old version's directory.

推荐答案

Chromium小组最近的博客文章是一个很好的指南:

The recent blog post from the Chromium team is a great guide:

http://blog.chromium.org/2009/01/google-chrome-installation-and-updates.html

基本上,当您使用MS的ClickOnce时,会做同样的事情,到目前为止,我使用具有这种更新方法的应用程序都没有问题,所以我认为这被归类为最佳实践"……但这就是我.

Basically, the same thing is done when you use MS's ClickOnce and I have no problem using applications with such update method so far, so I guess this classify as a "Best practice"... but that's just me.

  1. 将每个版本存储在其自己的唯一文件夹中.
  2. 使用启动器"启动可用的最新版本,然后...
  3. 启动应用程序后,在后台检查是否有新版本.
  4. 下载找到的任何新版本,并为该版本创建一个新文件夹.

Google Chrome浏览器有所不同,因为他们使用Google Update服务进行更新,但是总体体验/周期几乎相同.

Google Chrome is a little different since they use the Google Update service to do the updating but the overall experience/cycle is pretty much the same.

您的用户启动一个应用程序,如果有可用的新版本,则会在后台下载.然后,下次应用程序启动时,您的用户会自动(如果可能)静默获取新版本.

Your user launch an application, if any new version is available, it's downloaded in the background. And then the next time the application starts, your user gets the new version automatically and (if possible) silently.

这篇关于自动更新的最佳做法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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