【问题标题】:Windows PowerShell to Deploy Windows Store Appx Side LoadingWindows PowerShell 部署 Windows 应用商店 Appx 侧加载
【发布时间】:2015-07-02 03:34:24
【问题描述】:

我目前正在尝试将我的 Windows 应用商店应用设置为侧面加载。

我一直按照this one 等说明进行操作,但后来遇到了troubles with a MS Scheme and certificates

由于上述线程中的错误,无法让我的代码签名证书正常工作 - 我的下一步是尝试让侧面加载与我的应用程序和我在 Windows 商店中使用的证书一起工作。

当我尝试使用 Windows PowerShell 添加程序包时,我遇到了当前的问题。

我在个人和受信任的根证书颁发机构证书下的当前用户和本地计算机证书存储中拥有我用来签署我的应用程序的证书。

我的应用文件位于当前位置:C:\Temp\MyApp.appxupload。

接下来我进入:

add-appxpackage C:\Temp\MyApp.appxupload

当我运行命令时 - 我收到了

"Deployment failed with HRESULT: 0x80073CF0, Package could not be opened." 

日志包含更多信息说明:

"OpenError: (C:\Temp\MyApp.appxupload) [Add-AppxPackage], FileNotFoundException".

This article 告诉我这个错误有多种可能性:

The package couldn't be opened.

Possible causes:

The package is unsigned.
The publisher name doesn't match the signing certificate subject.
The file:// prefix is missing or the package couldn't be found at the specified location.

Check the AppxPackagingOM event log for more info.

我不相信这些事情是这样的,我想知道是否有其他人遇到过类似的问题并且知道如何解决它。

【问题讨论】:

    标签: powershell deployment windows-store-apps sideloading appx


    【解决方案1】:

    我相信您对 .appx 文件而不是 .appxupload 文件使用 Add-AppxPackage。尝试将文件重命名为 zip 文件,打开 zip 并解压缩 .appx 文件。然后在提取的 .appx 文件上运行 Add-AppxPackage。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-10-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-08-04
      • 1970-01-01
      • 2019-09-20
      相关资源
      最近更新 更多