AddPackageByAppInstallerFileAsync failing with 0x80072EFE

Occasional Visitor

We have an app that does essentially the following to install an appinstaller file:

PackageManager pm{};
const IAsyncOperationWithProgress<DeploymentResult, DeploymentProgress>& operation = 
    pm.AddPackageByAppInstallerFileAsync(
        appInstallerUri,
        AddPackageByAppInstallerOptions::ForceTargetAppShutdown,
        pm.GetDefaultPackageVolume());
const DeploymentResult& result = co_await operation;
if (result.ExtendedErrorCode() != 0 || !result.IsRegistered()) {
    OutputDebugString(result.ErrorText().c_str());
}

 

In some Windows 11 systems this is failing with:

 

Appinstaller operation failed with error code 0x80072EFE. Detail: Unknown error

 

 

Investigation suggests this error code corresponds to ERROR_INTERNET_CONNECTION_ABORTED.

As far as we know the internet connectivity at the location where the issue was observed is normal. Is this API not robust enough to spurious connectivity issues? Should we retry this operation when such an error happens?

 

Thanks.

0 Replies