我在文件夹中安装了 .appx 文件。我可以通过双击文件来安装它。
但我正在寻找一种使用 WinAppDeployCmd 进行安装和更新过程的安装方法。
WinAppDeployCmd install -file "C:\release\file.appx" -ip 192.168.0.1
192.168.0.1 - 是电脑本身的 IP。
我收到错误:
0x80131500 - 正在等待的网络事件触发了错误。
0x8007274D - 正在等待的网络事件触发了错误。
我正在使用 Windows 10。
我错过了什么吗?
最佳答案
Can I Use WinAppDeployCmd install, update on pc itself
简单的答案是肯定的。
I am getting error : 0x80131500 - The network event being waited on triggered an error.
如果您想通过
WinAppDeployCmd
将软件包安装到您的本地机器上,您需要Enable your device for development和 enable device discovery首先。出现此错误的原因应该是您没有启用设备发现。请在 Settings->Update & security->For Developers
中启用它:之后此错误将消失,但您可能会收到以下错误,请遵循 above document 的设备发现部分获取 Pin 图。
Please retry the command with the "-pin" option and a valid pin as shown in the device settings.
然后您可以使用以下命令安装该应用程序:
WinAppDeployCmd install -file "Downloads\MyApp.appx" -ip 192.168.0.1 -pin A1B2C3
关于uwp - 我可以使用 WinAppDeployCmd 安装,在个人电脑上更新吗,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45894261/