我有一个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脚本,但肯定有一种方法,我可以绕过所有这一切.理想情况下,我想安装测试应用程序.
证书可能是自签名的,所以你需要安装它来信任它.
获取签署应用程序的证书
如果这是你自己的应用程序,你应该在Visual Studio中.如果没有,我不太确定如何从APPX中提取它.
安装证书
报价从Installing developer packages on Windows RT:
- 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.
- Double-tap the certificate file in the folder and then tap Install Certificate. This displays the Certificate Import Wizard.
- In the Store Location group,tap the radio button to change the selected option to Local Machine.
- Click Next. Tap OK to confirm the UAC dialog.
- In the next screen of the Certificate Import Wizard,change the selected option to Place all certificates in the following store.
- Tap the Browse button. In the Select Certificate Store pop-up window,scroll down and select Trusted People,and then tap OK.
- Tap the Next button; a new screen appears. Tap the Finish button.
- 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.)
也可以看看: