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

查看:38
本文介绍了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天全站免登陆