Cannot Get WinAppDeployCmd for Appx Deployment

During the presentation of App Packaging and Deployment for Universal Windows Apps (fast forward to 00:36:00 ), one special command-line utility - WinAppDeployCmd - was used to deploy Windows 10 Universal on a phone running Windows 10 Mobile. This utility can be found here:

"c:\Program Files (x86)\Windows Kits\10\bin\x86\WinAppDeployCmd.exe" 

But every time I try to deploy a sample .appx package to a Lunia 635 phone with Windows Mobile v 10.0.12562.84 or to a Surface 3 device with Windows 10 Pro preview (all devices on the same network as my dev machine). I get the error "connection failed":

Windows Application Deployment Tool Version

10.0.0.0 Copyright (c) Microsoft

Corporation. All rights reserved.

Opening a connection with the device at the address "192.168.1.139".

0x80131500 - Connection Error

0x800705B4 - Waiting to wait for network events.

Just in case - I could ping both devices from my dev machine without problems, and also use them for VS2015RC (also tried with the renamed WinAppDeployCmd.exe ) so that VS2015RC does the deployment somehow differently without using this tool).

So I'm wondering - is there anyone who has succeeded in deploying the application using WinAppDeployCmd.exe ?

+5
source share
4 answers

This is a known issue in the current version. There is no workaround, and it will light up in a future release of the Windows Insider Preview SDK and tools.

https://social.msdn.microsoft.com/Forums/en-US/5c8d6f20-699c-4da2-9460-f73e89bf27c3/known-issue-cannot-sideload-applications-using-winappdeploycmd-windows-10-insider-preview- sdk-and? forum = Win10SDKToolsIssues

+2
source

I was able to deploy .appx using the WinAppDeployCmd command-line tool. Probably the problem was true in recent versions.

For those who are not familiar with this tool, it allows you to deploy the Universal Windows application with Windows 10 to any Windows 10 mobile device via USB or WiFi (since they are on the same subnet). This is the ideal solution if you do not have Visual Studio, no source code for the application, or if you are under a Hyper-V virtual machine.

Basically you will need:

  • Windows 10 SDK
  • Create .appx package (PC)
  • Enable Developer Mode (Mobile)
  • Enable discovery mode (Mobile)
  • Get code for pairing devices (Mobile)
  • Get mobile IP address using WinAppDeployCmd tool (PC)
  • Launch Command (PC)

The command will look like this:

 WinAppDeployCmd install -file "<path>" -ip <ip> -pin <pin> 

The tool can be found in C: \ Arquivos de Programas (x86) \ Windows Kits \ 10 \ bin \ x86 \ WinAppDeployCmd.exe

Below you can find a detailed step-by-step tutorial here.

+2
source

This happened to me once when the USB connector was faulty and Windows calculated that the device was not recognized. I switched the sockets and it worked. Therefore, make sure that you try to use other sockets (or even another computer to exclude a specific machine).

+2
source

This tool allows you to install, but not run the application after installation, as the first version in Windows 8.1 did.

0
source

All Articles