问题
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