Delphi:如何自动更新您的应用程序? [英] Delphi: How do you auto-update your applications?

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

问题描述

我一直在考虑滚动自己的代码,使我的Delphi应用程序无缝更新,因为我将要经常发布,提前释放的心态。有各种Delphi解决方案(免费软件和付费)在那里,我想询问您是否使用过任何一种解决方案,或者直接在这一领域继续使用自己的解决方案。对自动更新主题的任何意见都是受欢迎的。

I've been thinking of rolling my own code for enabling my Delphi application to update seamlessly as I'll be going for "release often, release early" mentality furthermore. There are various Delphi solutions (both freeware and paid) out there and I'd like to ask if you've been using any of them or simply went on with your own solutions in this area. Any comments on the auto-update topic are welcome.

推荐答案

几年前,我写了一个简单的工具,而不是真正的程序,检查更新,加载并安装它们(如果有的话),最后启动真正的应用程序。

Years ago I wrote a simple tool which is started instead of the real program, checks for updates, loads and installs them (if any are available), and finally starts the real application.

如果您的程序工作在正常管理的环境中,用户通常不会对程序目录进行写入访问。您不能再在这样的环境中更新自己的程序。这就是为什么这些日子里有许多程序带有自己的更新工具,可以安装它们以提升权限运行,以便即使只有标准用户登录系统,程序更新也可以应用。

There are however problems with that approach if your program works in a properly administered environment, where users normally don't have write access to the program directories. You can no longer simply update your own program in such environments. That's why a lot of programs these days come with their own updater tool, which can be installed to run with elevated permissions, so that program updates can be applied even though only standard users do ever log on to the system.

您必须决定您的目标受众是否可以假定在高级用户或管理员帐户上运行,还是要处理上述问题。有了Vista的事情已经相当困难了。

You have to decide whether your target audience can be assumed to run on power user or administrator accounts, or whether you will have to deal with above-mentioned problems. With Vista things got considerably harder already.

由于所有这些问题(网络访问代理,缺少安装目录的写入权限,需要更新更新程序本身的文件使用 - 仅举几例)我不会再试一次我自己编写这个。更好地检查是否有任何一个可用的解决方案全部需要它。

With all these problems (net access over proxies, missing write permissions for installation directories, the need to update files that the updater itself is using - just to name a few) I wouldn't try again to code this on my own. Much better to check if any one of the available solutions does all you need it to.

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

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