Automatically update apps inside the Windows 10 IoT Core?

眉间皱痕 提交于 2019-12-20 02:06:09

问题


Recently I have a question. If I write an UWP app and install into a Raspberry Pi with Windows IoT Core OS, is it possible that I set a automatic OTA update for my app inside the Raspberry Pi, just like normal UWP apps in Windows App Store do?

EDIT: Just for my apps, not for upgrading Windows OS (since it can be upgraded directly by Windows Update)


回答1:


Great question.

I'd suggest looking at a higher level device management solution that can provide updates of any type to a device via an IoT event hub. This is still in preview but check out this Microsoft post on getting started with something like this:

https://azure.microsoft.com/en-gb/documentation/articles/iot-hub-device-management-get-started/




回答2:


Since Windows IoT Core does not contain the Windows Store, it is impossible to enable automatic app updates like on your Windows 10 PC with the built-in tools. As far as I know you can only manually upload an app from your Pi's web interface, Visual Studio or maybe CMD/PowerShell/putty.




回答3:


It seems that I can use ProcessLauncher function in UWP app and start a new exe binary (of course it has to be compiled for ARM platform) to do the job. See here: Windows Developer - ProcessLauncher.

But anyway, my RPi3 is still on the way right now, I can't prove if my app can really can let another exe binary (or PowerShell script) to upgrade itself. Hope it can~!



来源:https://stackoverflow.com/questions/38552068/automatically-update-apps-inside-the-windows-10-iot-core

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