uwp - 我可以使用 WinAppDeployCmd 安装,在个人电脑上更新吗

标签 uwp windows-10

我在文件夹中安装了 .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 developmentenable device discovery首先。出现此错误的原因应该是您没有启用设备发现。请在 Settings->Update & security->For Developers 中启用它:

enter image description here

之后此错误将消失,但您可能会收到以下错误,请遵循 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/

相关文章:

c# - 没有短语列表的 UWP Cortana

c# - 使用 SSO/OpenID Connect 的 UWP 应用程序的回调 uri 是什么?

c# - 创建自定义文本编辑控件

visual-studio-2015 - 全屏模式 - Windows 10 App (JS)

c# - 如何在 Windows 10 中运行 Visual Studio 创建的 C# exe 文件?

c# - Toast 不显示

c# - 在带有 UWP 参数的控制台中使用 ApplicationData

python - 权限错误 : [WinError 5] Access is denied: 'C:\\Program Files\\Anaconda3\\pkgs\\vs2015_runtime-14. 0.25123-0.tmp

python - 为什么我在 python 控制台中看到写入文件的输出?

vb.net - 如何设置 Windows 窗体标题栏和 UI 使用 Windows 8/10 的平面操作系统主题,而不是 XP/7 纹理外观?