Is there a way to update a Windows Mobile 5 app over the air?

感情迁移 提交于 2019-12-11 07:47:53

问题


I want to be able to push out application updates to windows mobile 5 devices over the air, is this possible? Note, this is just an application, not a rom update.

It doesn't have to be a strict push. It is just as well to have the user go to a web page and download a .cab file. Has anyone had success doing this?


回答1:


If by "over the air" you mean wi-fi, then yes, I've done this.

At first I gave my users a step by step (close the app, open Internet Explorer, visit this page, click this link etc), but in recent versions of my app I've provided an "Update" menu item, which (after prompting) starts a download/run of a cab file before exiting the program. The time it takes to download the cab file is more than enough for the exe to stop running, so there hasn't been any problem with the process being in memory while it tries to update.




回答2:


Another simple way of updating a Windows Mobile app is to have the application call a web service and get the latest version of itself (the latest EXE file) as a byte array. The running application then renames itself (from "MyApp.exe" to "MyApp.old"), saves the byte array as a file with the old name ("MyApp.exe"), notifies the user and then closes. When the user restarts the app, the new version starts and deletes the "MyApp.old" file.




回答3:


For version management, consider updating the application via an Appcast. See here for more info: http://connectedflow.com/appcasting/. This way you will only pull down the CAB file when the users software is out of date.




回答4:


If a commercial app is an option and if you want to run an update with multiple cab files (say your app and the .NET framework), you can checkout link text, It is a tool to create multi cab installations for windows mobile



来源:https://stackoverflow.com/questions/347176/is-there-a-way-to-update-a-windows-mobile-5-app-over-the-air

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!