Jun 23 2021 09:48 AM
Jun 23 2021 09:48 AM
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 clicked.
The entire workflow is automated using Azure CI/CD pipelines where we transfer the msix and appinstaller to a IIS server using FTP so every time we change the source code, it gets built, packaged, and transferred to a host so users can download and upgrade. Each deployment replaces both the msix and appinstaller files with new files on the host but the download link still points to the appinstaller and is able to serve the installer since the name and the location of it does not change.
Everything works except the automatic updates. If the end user launches the app, they don't get prompted with the new version and the option to update until they restart their computer. But if they click on the installation link, the update window will pop up as expected.
I have tested this multiple times. It happens consistently and again the only solution that has worked for me do far, is rebooting the computer.
What am I doing wrong here?
Jun 23 2021 02:59 PM
Aug 31 2021 10:29 AM
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="22.214.171.124" xmlns="http://schemas.microsoft.com/appx/appinstaller/2018"> <MainPackage Name="12345678-1234-4333-12f3-123456789f12" Version="126.96.36.199" 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?
Aug 31 2021 02:28 PM - edited Aug 31 2021 02:32 PM
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="188.8.131.52" 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="184.108.40.206" Uri="https://www.tmurgent.com/AppV/Tools/TMEditX/Install/TMEditX-220.127.116.11-x64.msix" />
<OnLaunch HoursBetweenUpdateChecks="0" ShowPrompt="false" />