Can I Use WinAppDeployCmd install, update on pc itself

一曲冷凌霜 提交于 2019-12-20 03:15:04

问题


I have my .appx file for installation in folder. I can install it by double clicking the file.

But i am looking for a way to install it using WinAppDeployCmd for installation and also for update process.

WinAppDeployCmd install -file "C:\release\file.appx" -ip 192.168.0.1

192.168.0.1 - is the ip of the pc itself.

I am getting error : 0x80131500 - The network event being waited on triggered an error. 0x8007274D - The network event being waited on triggered an error.

I am using windows 10.

Am i missing anything?


回答1:


Can I Use WinAppDeployCmd install, update on pc itself

The simple answer is yes.

I am getting error : 0x80131500 - The network event being waited on triggered an error.

If you want to install the package to your local machine by WinAppDeployCmd, you need to Enable your device for development and enable device discovery firstly. The reason for getting this error should be you didn't enable device discovery. Please enable it in Settings->Update & security->For Developers:

After then this error will go but you may get the following error and please following the Device Discovery section of above document to get the Pin.

Please retry the command with the "-pin" option and a valid pin as shown in the device settings.

And then you can install the app with command like:

WinAppDeployCmd install -file "Downloads\MyApp.appx" -ip 192.168.0.1 -pin A1B2C3



来源:https://stackoverflow.com/questions/45894261/can-i-use-winappdeploycmd-install-update-on-pc-itself

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!