Hello Matteo Pagani, thank you for the article, it's very helpful.
I have a question regarding downgrade scenarios.
I want to support a scenario when a User is able to downgrade his app's version by themselves, without me changing MSIX packages on the server.
What I've done so far:
- each published version has all the files (appinstaller + MSIX + etc) for the current and one previous version
- While having the current version, I downloaded the previous .appinstaller file and executed it. Path to MSIX contains the version number, so this appinstaller file is pointed to the right MSIX. Nevertheless, the AppInstaller window asked me if I want to reinstall the current version, and when I hit "yes" it didn't do anything and kept the version the same.
- I downloaded the previous MSIX package. That time downgrade worked, but I don't like that it's quite a big download, and looks somewhat hacky.
Questions:
1. Is there a way to downgrade with only appinstaller file, pointing to prev version? As far as I can see, AppInstaller ignored version numbers and both URIs in the appinstaller file and offered to reinstall the current version. Or is it a bug?
2. To enable automatic updates, I downloaded a newer .appinstaller and reinstalled/updated the app. After that automatic updates started working again. Is it the supposed way to restore automatic updates? Are there other options?
3. Are there better ways to support this scenario?