如何自动更新Windows Mobile应用程序 [英] How to Auto-Update Windows Mobile application

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

问题描述

我有一个.net cf 3.5 Windows Mobile应用程序,我的客户端希望具有自动更新功能。

I have a .net cf 3.5 Windows Mobile application that my client wants to have autoupdate features.

到目前为止,这里是我所拥有的:

Here is what I have so far:


  1. 使用智能设备CAB项目创建CAB(足够好了,还是我应该在这里做其他事情)

2。获取应用程序版本号

2.Get the application version number

Assembly.GetExecutingAssembly().GetName().Version.ToString();




  1. 调用WCF Web服务进行操作查找版本号。

  2. 下载新版本的cab文件。

  3. ???

  4. 在CAB文件上执行WCELoad.exe

  5. Profit

  1. Call a WCF web service for to do a version number look up.
  2. Download a new version of the cab file.
  3. ???
  4. Execute WCELoad.exe on the CAB file
  5. Profit


推荐答案

您的解决方案通常是正确的,但是有一些问题。

Your solution is generally correct, but has a few problems.


  1. 您无法更新自己。您必须关闭并让其他应用程序更新,以防止文件共享问题。通常,通过启动专用的更新程序应用程序来处理。它可能是应用程序图标的目标,因此每次启动时都会进行更新,或者可以通过检查更新类型的菜单项来启动。无论如何,您都必须启动它并确保实际的应用程序未运行。

  2. 通常最好在发生损坏,中断的情况下提供某种形式的备份安装

  3. CAB更新将要求对所有内容进行批量更新。最终,这可能不是您想要的(您可能只想更新单个文件,程序集之类的东西),因此从下拉单个文件的逻辑开始,您将获得更多的可扩展性。

Alex Feinman的有关创建自更新应用程序的MSDN文章

An old, but still very valid, resource is Alex Feinman's MSDN article on creating self-updating applications.

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

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