代码之家  ›  专栏  ›  技术社区  ›  Hryhorii

带有UWP应用程序的设置包未安装在最新的Windows 10和Windows 10团队版本上

  •  0
  • Hryhorii  · 技术社区  · 1 年前

    我需要在我无法直接访问的带有Windows 10 Team OS的Surface Hub设备上测试UWP应用程序。如中所述 this answer 应用程序可以通过供应包安装。不幸的是,当我尝试用我的UWP应用程序安装配置包时,安装失败了。

    我尝试通过 Windows Configuration Designer 但最终得到了相同的结果,在带有Windows 10 Team OS的Surface Hub和桌面Windows 10设备上的配置失败。 我测试的每个软件包都成功地安装在Windows 11设备和一台旧Windows 10版本的设备上。

    我测试了通过 https://store.rg-adguard.net/ 以及使用来自Visual Studio的Blank App模板用于UWP应用程序。

    所有设备都启用了开发人员模式,每个设备都可以单独安装和启动.Appxbundle或.Mixbundle打包的应用程序。

    我在Microsoft Windows DeviceManagement Enterprise Diagnostics Provider/Admin下的事件查看器中收到两个不同的错误

    第一个出现三次:

    MDM ConfigurationManager: Command failure status. Configuraton Source ID: (ed3dde87-f804-4348-a7a3-48bd0b8329d0), Enrollment Type: (Provisioning), CSP Name: (EnterpriseModernAppManagement), Command Type: (Add: from Replace or Add), CSP URI: (./device/Vendor/MSFT/EnterpriseModernAppManagement/AppInstallation/Microsoft.MSPaint_8wekyb3d8bbwe), Result: (Unknown Win32 Error code: 0x82aa0002).
    

    HexInt1中的代码:0x82aa0002

    第二个总是最后出现:

    MDM Declared Configuration: Function (checkNewInstanceData) operation (Read isNewInstanceData) failed with (The parameter is incorrect.)
    

    HRESULT:0x80070057中的代码。

    为了创建设置包,我使用Windows配置设计器中的“高级设置”选项,并在UniversallAppInstall下添加DeviceContextApp,以便进行测试,我使用的是 Paint3D 应用程序下载自 https://store.rg-adguard.net/ 或Visual Studio模板中的空白UWP app.Mixbundle。在配置包中未设置其他内容。

    无法在这些Windows版本上安装设置程序包

    • Windows 10团队版本22H2(操作系统内部版本19045.3393)
    • Windows 10 Pro 22H2(操作系统内部版本19045.3448)
    • Windows 10 Pro 22H2(操作系统内部版本19045.3570)

    设置程序包已成功安装在:

    • Windows 11主页(操作系统内部版本22H2 22621.2428)
    • Windows 10 IoT企业版1909(操作系统版本18363.1377)
    0 回复  |  直到 1 年前