Forum Discussion
Mo_Velayati
Jun 23, 2021Copper Contributor
MSIX automatic update not working unless I restart my computer
Hi, I created a webpage that contains a link that allows end users to download and update their software. The HTML webpage links to the AppInstaller and launches the installer window when clicke...
Mo_Velayati
Aug 31, 2021Copper Contributor
Hi Timothy,
sorry for the delayed reply.
Here's what's inside the AppInstaller
<?xml version="1.0" encoding="utf-8"?>
<AppInstaller Uri="https://somewebsite.com/SomeApp.appinstaller" Version="1.0.0.5" xmlns="http://schemas.microsoft.com/appx/appinstaller/2018">
<MainPackage Name="12345678-1234-4333-12f3-123456789f12" Version="1.0.0.5" ProcessorArchitecture="x64" Publisher="CN=My Company, O=My Company, STREET=My Address, L=Somewhere, S=State, C=US" Uri="https://somewebsite.com/SomeApp.msix" />
<UpdateSettings>
<OnLaunch HoursBetweenUpdateChecks="0" ShowPrompt="true" UpdateBlocksActivation="true" />
</UpdateSettings>
</AppInstaller>
And here's the issue:
Every time I build and package the app, I sent it over to a IIS server via FTP which replaces the old .msix and .appinstaller files with the new ones. But when I launch my already installed app, it does not recognize that there's a new version available so it moves forward with opening the application without updating.
What I am missing?
Thanks!
Aug 31, 2021
What version OS are you deploying onto?
Note the difference in the Publisher field in the following file. It is the one I use to distribute my TMEditX product with updates.
<?xml version="1.0" encoding="utf-8"?>
<AppInstaller Version="1.5.0.0" Uri="https://www.tmurgent.com/AppV/Tools/TMEditX/Install/TMEditX.appinstaller" xmlns="http://schemas.microsoft.com/appx/appinstaller/2018">
<MainPackage Name="TMEditX" Publisher="CN="TMurgent Technologies, LLP", O="TMurgent Technologies, LLP", STREET=26 Angela Street, L=Canton, S=Massachusetts, PostalCode=02021, C=US" ProcessorArchitecture="x64" Version="1.5.0.0" Uri="https://www.tmurgent.com/AppV/Tools/TMEditX/Install/TMEditX-1.5.0.0-x64.msix" />
<UpdateSettings>
<OnLaunch HoursBetweenUpdateChecks="0" ShowPrompt="false" />
<AutomaticBackgroundTask />
<ForceUpdateFromAnyVersion>true</ForceUpdateFromAnyVersion>
</UpdateSettings>
</AppInstaller>