在升级应用程序方面需要帮助 [英] Need help on Upgradation of application

查看:84
本文介绍了在升级应用程序方面需要帮助的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我的问题与编程没有直接关系.我想知道更新应用程序的最佳方法.我知道的方法是用更新的新文件替换应用程序文件中的.exe文件.但我想知道不同的应用程序在运行时如何做到这一点,并从Internet下载更新.

有什么帮助吗?

一种解决方案

一种方法是创建一个非常基本的加载程序EXE(带有启动画面),该EXE文件可以动态地将主应用程序加载为一系列DLL文件. >
如果存在更新,此加载程序可以替换已下载到更新"文件夹中的旧DLL文件,并照常加载主DLL.


是的,这个问题几乎没有意义.首先,仅替换一个可执行文件是很危险的,因为软件产品通常具有多个可执行文件,而主应用程序文件通常依赖于其他文件,尤其是DLL.有不同的系统可以进行部分升级,但是它们都基于某些体现版本控制和依赖性的元数据.这样的升级系统非常复杂.

要记住的另一件事:当任何进程正在运行时,不可能删除,修改或替换该进程加载的任何可执行文件,以及打开的专用数据文件,这是默认设置.也就是说,对于任何升级,都需要关闭应用程序.

—SA


另一种方法是将更新加载到升级文件夹中,然后从那里启动安装程序应用程序(有各种可用的安装程序).安装程序的首要任务是,确保要升级的应用程序已关闭.


Hi,
My question is not directly related to programming. I want to know the best approach for updating the application. The way I know is to replace the .exe file in your application file with the new updated one. But I wonder how different applications do this while they are running and updates are downloaded from internet.

Any help please?

Thanks

解决方案

One way is to create a very basic loader EXE (with a splash screen) that dynamically loads the main application as a series of DLL files.

This loader can replace the old DLL files that have been downloaded to a "Update" folder if updates exists and load the main DLL as usual.


Yes, the question is pretty much pointless. First, replacing of just one executable file is dangerous as the software product usually have several ones and the main application file usually depends on others, especially DLLs. There are different systems for partial upgrade, but they all are based in some meta-data manifesting versioning and dependencies. Such upgrade systems are pretty complex.

Another thing to remember: when any process is running, it is impossible to delete, modify or replace any of the executable files loaded by this process, as well as data files opened for exclusive use, which is the default. That said, for any upgrade, an application needs to be closed.

—SA


Another method is to load the updates into an upgrade folder and launch an installer application from there (there''s a variety of installers available). First task of the installer, make sure the application you''re upgrading is closed.


这篇关于在升级应用程序方面需要帮助的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
其他开发语言最新文章
热门教程
热门工具
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆