Forum Discussion
Windows 10 2004 - MSIX Not Updating -Please check whether the Msixvc support services are installed.
Hi everyone,
If anyone is interested, I have a workaround that I'm currently testing.
So, the idea is to do basically parse your .appinstaller file, download the .msixbundle locally, and launch it. Sure it sucks, but it's the best workaround I could come up with, knowing this crappy bug.
(the idea is - if you download and launch the .msixbundle, it works).
If anyone's interested, I can share the code (it's C#)
You would need to update your code:
protected override async void OnLaunched(LaunchActivatedEventArgs e) {
if (setup_kit_util.has_update_downloaded_locally() && await setup_kit_util.launch_update_kit()) {
Application.Current.Exit();
return;
}
...
}
and somewhere in your code's initialize routine, add this:
await Task.Run(async () => await setup_kit_util.download_update_task());
Best,
John
However if you do the work in parsing the .appinstaller file I would be interested :).
- John_TorjoJun 07, 2021Copper Contributor
I've already done the work.
Parsing is easy - I only need to look for the current version of your kit in the .appinstaller.
Then see if your current version matches that. If it's higher, that means there's a new version on server -- download and install it.Here's the code:
https://github.com/jtorjo/AppinstallerWorkaround
LATER EDIT: Clearly this only deals with your part of the equation. If you have dependencies that need to be updated, things will get a lot more complicated.
- marcinotorowskiJun 07, 2021Brass Contributor
I don't consider parsing appinstaller a good solution, but if you want to use it as a workaround you can use a parser from my repo https://github.com/marcinotorowski/MSIX-Hero/tree/develop/src/Otor.MsixHero.AppInstaller/Entities instead of reinventing the wheel