How to configure Auto update in MAUI application ?

Sanket Vinod Solanki 30 Reputation points
2023-03-08T07:34:42.23+00:00

Hi,

Consider we have developed a MAUI application.

For deployment of this MAUI application in multiple machine we created a setup file / package following this link - [https://github.com/dotnet/docs-maui/blob/main/docs/windows/deployment/publish-visual-studio-folder.md

Is there any way for Auto updating application which can happen during application start?

We tried the app installer concept

We have created this AppInstaller file manually and kept it in shared folder.

<?xml version="1.0" encoding="utf-8"?>
<AppInstaller
    xmlns="http://schemas.microsoft.com/appx/appinstaller/2021"
    Version="1.0.0"
    Uri="Shared Folder path\Mauiinstaller.appinstaller" >
<MainPackage
        Name="MauiApp1"
        Publisher="CN=Some value"
        Version="1.0.0.2"
        ProcessorArchitecture="x64"
        Uri="Shared folder path\MAUI\MauiApp1_0.0.2.0_Debug_Test\MauiApp1_0.0.2.0_Debug_Test.msix" />
<UpdateSettings>
        <OnLaunch 
            HoursBetweenUpdateChecks="12" />
    </UpdateSettings>  
</AppInstaller>

When we distribute this app installer file, there are 2 types of error noticed in different machines.

Error 1 - In some of the machines

User's image

Error 2 - In Some of the machines

User's image

How to configure Auto update in MAUI and how to resolve this issues. ?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,207 questions
{count} votes