Feb 13 2020 06:47 AM
Feb 13 2020 06:47 AM
My app installs without issue with an appinstaller file. And the updates from the web are working fine. However, after the app updates itself once, I have seen many of my test machines (maybe all). Fail to install any future updates. The eventviewer shows an error code 0x80070490, with a message of "Element not found".
This is rather puzzeling, as on that same machine if I click an ms-appinstaller:?source=... link, the appinstaller offers to update the app and does so successfully. After that, the app searches successfully for updates and also installs a new update once.
Triggering a "CheckUpdateAvailabilityAsync()" from code leads to a "PackageUpdateAvailability.Unknown" result.
I have been unable to find that error code on the internet, and the problem arises for a longer time now, across multiple updates and devices.
Any hints would be very much appreciated
Feb 13 2020 12:56 PM
It seems like something is happening during the update to cause the app to lose its appinstaller file association.
What build are you on? If you could please file a Feedback Hub bug with a repro under Developer Platform -> App deployment we can have someone take a look and determine the root of your issue.
Feb 13 2020 11:47 PM
I have reproduced and filed the feedback here: https://aka.ms/AA7ayp9
Unfortunately, I might have selected the wrong category? Sorry about that. Let me know if you want me to record again. Also, my users are all using Windows with German selected as their UI-language, I hope that's not a problem for the diagnostics.
This shows the update not working. I will try to catch a working update when I get a chance to do so.
Feb 14 2020 03:13 PM
Thank you for doing that. Would you mind filing the feedback one more time, except this time when you repro the issue, please don't manually install with the AppInstaller file at the end. This way we can capture what the app's state is when the issue is occurring. Thank you!
Feb 18 2020 03:19 AM - edited Feb 18 2020 04:25 AM
I have filed this again: https://aka.ms/AA7c72w
Hope this helps? Let me know if you could use any more details. I'm happy to record more feedback, if that helps.
I have verified in the server logs that a fresh appinstaller install of our app does ping our server for updates as expected.
In the state that throws the error previously described, I have verified that our server does not get accessed at all - the logs don't show any activity.
As for versions: my test machines here all running Windows 1909 with all updates installed.
The app is built on my 2004/20H1 - 19041.84 desktop with most recent VS 16.4. The app consists of a WPF project and some UWP components. The entry point is the wpf application (Windows.FullTrustApplication), which runs in the background and starts a UWP window via protocol handler.
If source code access would help, we could do that if you have a secure (non-public) way for me to send you the file.
Mar 11 2020 07:40 AM
I'll mention that I have seen a similar situation with AppInstaller seemingly disappear. A reboot cleared the problem on the machine. I did not investigate but assumed it was a windows update.