Forum Discussion
Winforms .exe in MSIX Package Does Not Startup After Auto Update
Hi MikeH,
The developer that is working on this is unable to re-create the experience and is asking for a further, more explicit breakdown of steps that re-trigger this experience. Looking at previous comments I do not see an exact list of steps.
Can you or someone following this discussion please provide this?
Thank you,
Roy
- MikeHOct 19, 2022Brass ContributorHi Christophe,
For apps packaged with Conveyor [1] we have a workaround:
1. We default to background updates, which don't have this issue.
2. We have a tiny Win32 app that drives the package manager via the WinRT/C++ API and then starts the app once complete. If a packaged program wishes to force an update and knows one is available e.g. from a server poll, it simply invokes the bundled EXE and then quits. The stub EXE then drives the install/upgrade process whilst showing a progress bar and app logo, and relaunches the app when done.
This gives a similar experience to the built-in "check on start" mode, but with these caveats:
1. It's a feature of Conveyor, not MSIX. Therefore you must use Conveyor to package your app to get it.
2. It's not yet a fully launched/documented feature. You'd probably want our help to activate it. We should launch it soon though.
3. It's up to your app to notice there's a new version available and trigger the update process. For example by doing a quick poll whilst showing a splash screen. We don't block startup like the AppInstaller integration will do, because you may wish to overlap the update check with things like logging in to a server, instead of adding app latency every single time.
You can see a short looping video of what the installer EXE looks like on our website: https://hydraulic.software/ - GToisonOct 19, 2022Copper Contributor
In case that helps: we have the exact same problem but only on some computers: for some the problem always reproduces, for other it never happens.
That's on the exact same application, so the problem seems to be either on the computer itself or some interaction between the computer and the application.
We have not seen any obvious difference between the computers but we're not sure what to look for.
- christophekellerSep 02, 2022Copper Contributor
@Roy_MacLachlan any news on this?
Has someone been able to work around this problem? (for example with a custom update process like alluded to here):
https://github.com/MicrosoftDocs/msix-docs/issues/59
??