During the COVID-19 pandemic, I was one of the lucky ones who was able to keep my job and work from home. At least, so far... It's one of the benefits of working in computer programming: you can often work from anywhere, so long as you have a functioning VPN. One of my tasks over the quarantine period was to try to configure an application to support automatic updates. These applications are UWP apps built for a Windows IoT installation on a Raspberry Pi (RPi). It's an internal application that is still in a Beta stage, so it's not suitable to release over the Microsoft Store (at least, not yet). We had been manually updating the handful of devices in the field for the past two years, and as the number of deployed devices has grown, having to send someone out to manually update them was becoming a pain. Even moreso in this new era of social distancing.
Many Windows apps can be built in Visual Studio to support automatic updates.
Windows IoT has not been the best of environments to work in. It lacks a lot of functionality built-in to other Windows environments, and documentation for it is spotty, at best. Back in 2018 (shortly after we had started deploying the apps in the field), Microsoft released an update for Windows and Visual Studio that allows UWP apps to be built such that they automatically periodically check a specified server location for new updates. Awesome! It sounded like there would be a simple solution!
Be sure to update the version number.
I built the app with auto-updates enabled for every hour, deployed it to my test RPi over the Windows Device Manager, and deployed the update package and .appinstaller file onto our test server.
Then I waited.
Select an appropriate frequency to check for updates. I set it to check every hour while testing.
And nothing happened.
...
[More]
987de5bf-7e9f-4a18-848c-701585ac3fb6|1|5.0
Tags:Windows, Internet of Things, Raspberry Pi, Universal Windows Platform, MS App Installer, .appinstaller, Visual Studio, programming, C#, COVID-19, social distancing, work-from-home