AppInstaller OnLaunch Update check does not start the application after update
Hello
We are currently developing an application that needs to check updates before launch. Therefore we implemented the following Appinstaller:
<?xml version=”1.0″ encoding=”UTF-8″ standalone=”yes”?>
<AppInstaller Uri=”https://somehost/someappinstaller.appinstaller” Version=”1.0.1.36″ xmlns=”http://schemas.microsoft.com/appx/appinstaller/2018″>
<MainPackage Name=”SomeCompany.SomeApp” Version=”1.0.1.36″ Publisher=”CN=Somepublisher” Uri=”https://somehost/someupdatedpackage.msix” ProcessorArchitecture=”x86″/>
<UpdateSettings>
<OnLaunch HoursBetweenUpdateChecks=”0″ ShowPrompt=”true” UpdateBlocksActivation=”true”/>
<AutomaticBackgroundTask/>
<ForceUpdateFromAnyVersion>true</ForceUpdateFromAnyVersion>
</UpdateSettings>
</AppInstaller>
If we now have version 1.0.0.37 of SomeApp installed a window will show up to guide us to update the app:
If i now click update the app will update but it will not start afterwards. The Eventlog is showing Eventlog Id 323 with error 0x80070490 reference the old version of SomeApp: Fehler 0x80070490: Das Paket “SomeCompany.SomeApp_1.0.0.37_x86__wpr0009ygztjt” kann not be registered: Element not found.
When I try to launch the app using it’s app alias with the command line I get the following error
This message is basically saying that the file could not be accessed but what troubles me most that the path is pointing to version 1.0.0.37 so the version which has been replaced by the update.
My fear is the following: The appinstaller has currently a bug which is not pointing to the outdated file after update. So the app will not launch after an update. Or am I using something wrong here?
Hello We are currently developing an application that needs to check updates before launch. Therefore we implemented the following Appinstaller:<?xml version=”1.0″ encoding=”UTF-8″ standalone=”yes”?>
<AppInstaller Uri=”https://somehost/someappinstaller.appinstaller” Version=”1.0.1.36″ xmlns=”http://schemas.microsoft.com/appx/appinstaller/2018″>
<MainPackage Name=”SomeCompany.SomeApp” Version=”1.0.1.36″ Publisher=”CN=Somepublisher” Uri=”https://somehost/someupdatedpackage.msix” ProcessorArchitecture=”x86″/>
<UpdateSettings>
<OnLaunch HoursBetweenUpdateChecks=”0″ ShowPrompt=”true” UpdateBlocksActivation=”true”/>
<AutomaticBackgroundTask/>
<ForceUpdateFromAnyVersion>true</ForceUpdateFromAnyVersion>
</UpdateSettings>
</AppInstaller>If we now have version 1.0.0.37 of SomeApp installed a window will show up to guide us to update the app:If i now click update the app will update but it will not start afterwards. The Eventlog is showing Eventlog Id 323 with error 0x80070490 reference the old version of SomeApp: Fehler 0x80070490: Das Paket “SomeCompany.SomeApp_1.0.0.37_x86__wpr0009ygztjt” kann not be registered: Element not found.When I try to launch the app using it’s app alias with the command line I get the following errorThis message is basically saying that the file could not be accessed but what troubles me most that the path is pointing to version 1.0.0.37 so the version which has been replaced by the update. My fear is the following: The appinstaller has currently a bug which is not pointing to the outdated file after update. So the app will not launch after an update. Or am I using something wrong here? Read More