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
I deploy an MSIX app to a shared folder from where my users will install from.
I have 2 versions, the old .3501 and the new, 3504.
MasterData.appinstaller points to the new version.
I make 2 copies of the .appinstaller file, one called New and the other called Old.
Then I modify the MasterData - Old.appinstaller file to point at an old version (.3501).
It should look like this:
<?xml version="1.0" encoding="utf-8"?>
<AppInstaller
Uri="file://XXX/MasterData/Test/MasterData.appinstaller"
Version="2022.329.1519.3501" xmlns="http://schemas.microsoft.com/appx/appinstaller/2018">
<MainBundle
Name="067d1aa7-6a9d-4195-b04c-4dc1f12837c1-test"
Version="2022.329.1519.3501"
Publisher="CN=XXX"
Uri="file://XXX/MasterData/Test/MasterData_2022.329.1519.3501/MasterData_2022.329.1519.3501_x64.msixbundle" />
<UpdateSettings>
<OnLaunch ShowPrompt="true" UpdateBlocksActivation="true"
HoursBetweenUpdateChecks="0" />
<AutomaticBackgroundTask />
<ForceUpdateFromAnyVersion>true</ForceUpdateFromAnyVersion>
</UpdateSettings>
</AppInstaller>
Then I delete MasterData.appinstaller and copy MasterData - Old.appinstaller, and rename it to MasterData.appinstaller.
Then I install the app by clicking MasterData.appinstaller.
Then I close the app.
Now I want to simulate an upgrade of the app.
First I delete MasterData.appinstaller. Then I copy MasterData - New.appinstaller and rename it to MasterData.appinstaller.
Then I go to Windows->Start and run MasterData. The upgrade dialog appears:
I click on Update and the update finishes. The dialog closes, but nothing happens. <- This is the bug.
Then I click on the Windows button, and the upgraded app opens.
- MikeHAug 12, 2022Brass Contributor
Thanks to Lars for repro steps. Roy_MacLachlan - to get everyone on the same page, can you find out what exact version of Windows and AppInstaller your developer is using? Let's rule out the possibility that you've already got it fixed in a build we're not using. Or better, ask your dev to come here directly so we can iterate faster?
I haven't tried to repro it lately, but I'll try to get an independent set of repro steps next week.