AppInstaller XML Issue

  appinstaller, azure-devops, msix, windows, xml

I’m trying to follow the Microsoft documentation
but I’m confused as to why my appinstaller is failing:

<?xml version="1.0" encoding="utf-8"?>
<AppInstaller xmlns="" Uri="" Version="">
    <MainPackage Name="MyApp" Version="" Publisher="CN=xxxxxx" ProcessorArchitecture="x64" Uri=""/>
    <UpdateSettings> <OnLaunch HoursBetweenUpdateChecks="1" /> <AutomaticBackgroundTask/> </UpdateSettings>

If I run the MSIX file, it installs as it should.
I’ve been trying to follow this:
I get this error:
enter image description here
And if I remove the UpdateSettings attribute it will just cause another error:
"App installation failed with error message: Appinstaller operation failed with error code 0x80D05011. Detail: Unknown error (0x80d05011)"

Kindly please help.

Source: Windows Questions