Oct 22 2021 04:56 AM
I have an MSIX installed via App Installer. I've got it working, but sometimes after an update there is a very long pause before the app is relaunched.
In the Event Viewer there is a helpful breakdown of where the time during an install/upgrade operation is spent. Unfortunately almost all the time is allocated to something simply called "Gap", strongly implying that during this pause the App Installer is in fact doing ... nothing. Example:
This is rather puzzling, to say the least. Most of the categories are self explanatory, but can any MSIX experts explain why there is an apparently pointless 31.4 second pause after "Stage user data" and "Registration"? And, does anyone know how I can get rid of this "gap"?
Oct 27 2021 01:20 PM
@MikeH Thank you for your question. If you reproduce the behavior and file a bug in the Feedback Hub app, someone on our team can take a look at it. You can file it under "Install and Update" -> "App installation issues".
Jan 30 2024 06:25 AM
Jan 30 2024 08:37 AM
@GrahamGBI think we concluded that it's some lazy attempt to avoid a race between the updater and the app shutting down, when it's detected that the app is still running. I run a company that makes packaging tools and we solved this by taking more control over the update process ourselves using the API.
Hydraulic Conveyor makes MSIX packages but also a small Win32 installer/updater exe that drives the install and update process itself. This lets us work around bugs in Windows.
Jan 31 2024 03:59 AM
Hi @GrahamGB
Is this delay in launch happening only for this specific package or other packages as well?
You can try to uninstall the package and then Analyze Package again using MSIX Packaging tool.
Once you do this, please collect and share the logs using Get-AppxLog (Appx) | Microsoft Learn for any error warnings that point to the cause of delay.
Thanks,
Fiza
PM, MSIX