如何实现应用程序内更新程序 [英] How to implement an In-App updater

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

问题描述





我正在开发一个使用ATL / WTL库开发和维护的帮助查看器应用程序。该应用程序使用XHTML页面形式的一些帮助内容,这些页面独立于帮助查看器本身单独安装在系统中。现在我们计划将内容放在某个服务器上,除了为其提供帮助查看器本身,以便内容可以不时更新,并且用户每次启动帮助查看器时都会获得更新的内容。



现在我的问题是,如果有一种机制,我可以让帮助查看器执行以下操作。



1。检查服务器上的内容(如果最近更新)。如果是,则通知用户更新用户系统中安装的内容。



2.如果用户允许,则静默下载内容安装程序并安装内容和使用更新的内容重新启动帮助查看器。



我是否需要在此使用任何Web服务,或者是否可以使用ATL?WTL API实现。我该怎么办?



谢谢

解决方案

一种简单的方法是使用 URLDownloadToFile



第一步,将信息文件下载到Temp并检查更新,如果有更新,则继续。



完成后不要忘记删除下载的文件。 ; - )

Hi,

I am working on an help viewer kinda app that is developed and maintained using ATL/ WTL library. The application uses some help content in form of XHTML pages that is installed separately in the system independent of the help viewer itself. Now we are planning to put the content on some server, besides providing it with the help viewer itself, so that the content can be updated time to time and the user gets the updated content whenever he launches the help viewer.

Now my question is if there is a mechanism using which I can make the help viewer do the following.

1. Check the content on the server if it is updated recently. If yes, then notify the user to update the content installed in the user system.

2. If the user permits then silently download the content installer and install the content and relaunch the help viewer with the updated content.

Do I need to use any web services in this or can it be implemented using ATL?WTL APIs. How should I approach ?

Thanks

解决方案

An easy way is using URLDownloadToFile.

At the first step download an info-file into the Temp and check for the update and proceed if an update is available.

Dont ferget to delete the downloaded files after you are done. ;-)


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

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