Appinstaller无法识别的扩展程序类别(使用本机消息传递进行边缘扩展)

时间:2018-06-14 20:12:05

标签: installer bridge appx microsoft-edge-extension

我们成功为扩展程序创建了 .appx 。它正在安装,加载和运行Edge扩展。

为了利用上传功能,我们尝试创建 .appinstaller 。虽然appinstaller完成安装并打开应用程序,但Edge扩展程序根本不起作用。

安装完成后,我可以看到以下"无法识别的扩展类别" Application and Services Logs->Microsoft->Windows->AppxDeployment-Server事件查看器上的警告:

<extensionId>\AppxManifest.xml(47,25): warning: The 'windows.appExtension' extension category in the <extension_id> package is unrecognized.
<extensionId>\AppxManifest.xml(51,28): warning: The 'windows.fullTrustProcess' extension category in the <extension_id> package is unrecognized.

正如我所说,直接运行 appx ,它运行正常。看起来问题是appinstaller禁用那些功能(appExtension和fullTrustProcess),这些功能对于使用网桥运行的Edge扩展是必需的。

AppxManifest.xml元素:

<Extensions>
    <uap3:Extension Category="windows.appExtension">
      <uap3:AppExtension Name="com.microsoft.edge.extension" Id="EdgeExtension" PublicFolder="Extension" DisplayName="ms-resource:DisplayName">
      </uap3:AppExtension>
    </uap3:Extension>
    <deskwindows.fullTrustProcess" Executable="Win32\Foo.exe" xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10" />
</Extensions>

Foo.appinstaller(在HTTPS下提供):

<?xml version="1.0" encoding="utf-8"?>
<AppInstaller
    xmlns="http://schemas.microsoft.com/appx/appinstaller/2017/2"
    Version="1.0.0.0" 
    Uri="https://some.domain.com/Foo.appinstaller" > 

    <MainPackage 
        Name="extensionId"
        Publisher="CN=Publisher"
        Version="1.0.0.0"
        Uri="https://some.domain.com/Foo.appx"
    ProcessorArchitecture="x86" />

    <UpdateSettings>
        <OnLaunch HoursBetweenUpdateChecks="24" />
    </UpdateSettings>
</AppInstaller> 

这是appinstaller的错误吗? appinstaller是否支持使用本机消息安装进行Edge扩展?

谢谢

0 个答案:

没有答案