gpt4 book ai didi

windows-applications - 在没有可信证书的情况下安装 .appx?

转载 作者:可可西里 更新时间:2023-11-01 11:55:37 27 4
gpt4 key购买 nike

我有一个 Windows 8 应用程序,我想将其部署到我的 Windows RT 2。我只有 .appx,我想绕过商店安装它进行测试。但是,当我运行命令时:

Add-AppxPackage <project.appx>

我收到以下错误:

In-line script returned error output: Add-AppxPackage : Deployment failed with HRESULT: 0x800B0109, A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider. (Exception from HRESULT: 0x800B0109) error 0x800B0109: The root certificate of the signature in the app package must be trusted.*

Google 说我需要证书或 PowerShell 脚本,但肯定有一种方法可以绕过所有这些。理想情况下,我只想安装应用程序进行测试。

否则,解决此问题最简单的方法是什么? .appx 我还需要什么,以便我可以毫无问题地安装它?

最佳答案

该证书可能是自签名的,因此您需要安装它以信任它。

获取签署应用程序的证书

如果这是您自己的应用程序,您应该能够在您的 IDE(例如 Visual Studio)中找到它,否则请使用以下步骤:

  1. 右键单击 APPX 文件
  2. 点击属性
  3. 点击数字签名
  4. 从列表中选择签名
  5. 点击详情
  6. 点击查看证书
  7. 点击安装证书

安装证书

引自 Installing developer packages on Windows RT :

  1. From the Windows RT PC, either map the network share or connect the USB drive where you can access the AppPackages folder that contains the app package to install. Use Windows Explorer to open that folder.
  2. Double-tap the certificate file in the folder and then tap Install Certificate. This displays the Certificate Import Wizard.
  3. In the Store Location group, tap the radio button to change the selected option to Local Machine.
  4. Click Next. Tap OK to confirm the UAC dialog.
  5. In the next screen of the Certificate Import Wizard, change the selected option to Place all certificates in the following store.
  6. Tap the Browse button. In the Select Certificate Store pop-up window, scroll down and select Trusted People, and then tap OK.
  7. Tap the Next button; a new screen appears. Tap the Finish button.
  8. A confirmation dialog should appear; if so, click OK. (If a different dialog indicates that there is some problem with the certificate, you may need to do some certificate troubleshooting. However, describing what to do in that case is beyond the scope of this topic.)

另见:

关于windows-applications - 在没有可信证书的情况下安装 .appx?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23812471/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com