简体   繁体   English

自动更新Windows 10 IoT核心内的应用程序?

[英]Automatically update apps inside the Windows 10 IoT Core?

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? 如果我编写一个UWP应用程序并安装到带有Windows IoT核心操作系统的Raspberry Pi中,我是否可以在Raspberry Pi中为我的应用程序设置自动OTA更新,就像Windows App Store中的普通UWP应用程序一样?

EDIT: Just for my apps, not for upgrading Windows OS (since it can be upgraded directly by Windows Update) 编辑:仅适用于我的应用程序,不适用于升级Windows操作系统(因为它可以通过Windows Update直接升级)

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. 我建议查看更高级别的设备管理解决方案,该解决方案可以通过IoT事件中心向设备提供任何类型的更新。 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/ https://azure.microsoft.com/en-gb/documentation/articles/iot-hub-device-management-get-started/

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. 由于Windows IoT Core不包含Windows应用商店,因此无法使用内置工具启用Windows 10 PC上的自动应用更新。 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. 据我所知,您只能从Pi的Web界面,Visual Studio或CMD / PowerShell / putty手动上传应用程序。

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. 似乎我可以在UWP应用程序中使用ProcessLauncher函数并启动一个新的exe二进制文件(当然它必须为ARM平台编译)来完成这项工作。 See here: Windows Developer - ProcessLauncher . 请参阅此处: 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. 但无论如何,我的RPi3现在还在路上,我无法证明我的应用程序是否真的可以让另一个exe二进制文件(或PowerShell脚本)自行升级。 Hope it can~! 希望它能〜!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM