Mar 30 2021 10:34 PM - edited Mar 30 2021 10:35 PM
When checking the update for a WPF app packaged into MSIX together with Package Support Framework, CheckUpdateAvailabilityAsync method returns such a result with Extended error: "The .appinstaller file is invalid. (Exception from HRESULT: 0x8008020C)" for machines with Win 10 1809. For other machines which are running 1909, the update is successfully found.
I'm using code from docs example Update non-Store published apps from your code - MSIX | Microsoft Docs:
_currentPackage = _pm.FindPackageForUser(string.Empty, Package.Current.Id.FullName);
var result = await _currentPackage.CheckUpdateAvailabilityAsync();
Package.Current.Id.FullName is successfully recognized on both 1809 and 1909. The only difference is for CheckUpdateAvailabilityAsync call. What does this error code mean?
Attaching my appinstaller file (it's default one generated from VS "publish").
Apr 14 2021 12:54 PM
Apr 14 2021 10:54 PM
Hi, thanks for the reply. Could you be more specific? I don't understand what should I do.
Apr 15 2021 09:48 AM
Apr 15 2021 10:13 AM
Apr 15 2021 11:09 PM
@Deleted
Thanks for great tip :D
According to docs it should work on 1809. I can't control my organization upgrade plan. Users will get newer version eventually but some of them are not there yet.
Apr 15 2021 11:40 PM