How to Auto-Update Windows Mobile application

前端 未结 5 729
闹比i
闹比i 2020-12-28 22:51

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. create a CAB using the Sm
5条回答
  •  臣服心动
    2020-12-28 23:48

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

    1. You can't update yourself. You have to shut down and have some otehr app update you to prevent the file-sharing issue. This is usually handled by having a dedicated "updater" app that you launch. It might be the target of the app icon and therefore does updates with every launch, or it may be launched via a "check for updates" type of menu item. Regardless, you have to launch it and make sure the actual app isn't running.
    2. It's generally a good idea to provide some form of back-up in the event of a corrupt, interrupted install
    3. CAB updates are going to require wholesale updates of everything. This may not be what you want in the end (you may want to update just a single file, assembly or whatever) so starting with the logic of pulling down individual files is going to make you way more extensible.

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

提交回复
热议问题