Windows phone applications deployment

Install apps with the WinAppDeployCmd.exe tool

Windows Application Deployment (WinAppDeployCmd.exe) is a command line tool that can use to deploy a Universal Windows Platform (UWP) app from a WindowsВ 10 PC to any WindowsВ 10 device. You can use this tool to deploy an app package when the WindowsВ 10 device is connected by USB or available on the same subnet without needing Microsoft Visual Studio or the solution for that app. You can also deploy the app without packaging first to a remote PC or Xbox One. This article describes how to install UWP apps using this tool.

You just need the WindowsВ 10 SDK installed to run the WinAppDeployCmd tool from a command prompt or a script file. When you install an app with WinAppDeployCmd.exe, this uses the .appx/.msix file or AppxManifest(for loose files) to side-load your app onto a WindowsВ 10 device. This command does not install the certificate required for your app. To run the app, the WindowsВ 10 device must be in developer mode or already have the certificate installed.

To deploy to mobile devices, you must first create a package. For more information, see here.

The WinAppDeployCmd.exe tool is located here on your WindowsВ 10 PC: C:\Program Files (x86)\Windows Kits\10\bin\ \x86\WinAppDeployCmd.exe (based on your installation path for the SDK).

In version 15063 and later of the SDK, the SDK is installed side by side within version-specific folders. Previous SDKs (prior to and including 14393) are written directly to the parent folder.

First, connect your WindowsВ 10 device to the same subnet or connect it directly to your WindowsВ 10 machine with a USB connection. Then use the following syntax and examples of this command later in this article to deploy your UWP app:

WinAppDeployCmd syntax and options

This is the general syntax used for WinAppDeployCmd.exe:

Here are some additional syntax examples for using various commands:

You can install or uninstall an app on the target device, or you can update an app that’s already installed. To keep data or settings saved by an app that’s already installed, use the update options instead of the install options.

The following table describes the commands for WinAppDeployCmd.exe.

Command Description
devices Show the list of available network devices.
install Install a UWP app package to the target device.
update Update a UWP app that is already installed on the target device.
list Show the list of UWP apps installed on the specified target device.
uninstall Uninstall the specified app package from the target device.
deployfiles Copy over loose file app at the target path to the remote relative path on the device.
registerfiles Register the loose file app at the remote deploy directory.
addcreds Add credentials to an Xbox to allow it to access a network location for app registration.
getcreds Get network credentials for the target uses when running an application from a network share.
deletecreds Delete network credentials the target uses when running an application from a network share.

The following table describes the options for WinAppDeployCmd.exe.

Command Description
-h (-help) Show the commands, options and arguments.
-ip IP address of the target device.
-g (-guid) Unique identifier of the target device.
-d (-dependency) (Optional) Specifies the dependency path for each of the package dependencies. If no path is specified, the tool searches for dependencies in the root directory for the app package and the SDK directories.
-f (-file) File path for the app package to install, update or uninstall.
-p (-package) The full package name for the app package to uninstall. (You can use the list command to find the full names for packages already installed on the device)
-pin A pin if it is required to establish a connection with the target device. (You will be prompted to retry with the -pin option if authentication is required)
-credserver The server name of the network credentials for use by the target.
-credusername The user name of the network credentials for use by the target.
-credpassword The password of the network credentials for use by the target.
-connecttimeout The timeout in seconds used when connecting to the device.
-remotedeploydir Relative directory path/name to copy files over to on the remote device; This will be a well-known, automatically determined remote deployment folder.
-deleteextrafile Switch to indicate whether existing files in the remote directory should be purged to match the source directory.

The following table describes the options for WinAppDeployCmd.exe.

Argument Description
Timeout in seconds. (Default is 10)
IP address or unique identifier of the target device.
. Dependency path for each of the app package dependencies.
An alpha-numeric pin shown in the device settings to establish a connection.
File system path.
Full package name for the app package to uninstall.
Server on the file network.
User for the credentials with access to the server on the file network.
Password for the credentials with access to the server on the files network.
Directory on device relative to the deployment location

WinAppDeployCmd.exe examples

Here are some examples of how to deploy from the command-line using the syntax for WinAppDeployCmd.exe.

Shows the devices that are available for deployment. The command times out in 3 seconds.

Installs the app from MyApp.appx package that is in your PC’s Downloads directory to a WindowsВ 10 device with an IP address of 192.168.0.1 with a PIN of A1B2C3 to establish a connection with the device

Uninstalls the specified package (based on its full name) from a Windows 10 device with an IP address of 192.168.0.1. You can use the list command to see the full names of any packages that are installed on a device.

Updates the app that is already installed on the WindowsВ 10 device with an IP address of 192.168.0.1 using the specified app package.

Deploys the files of an app to a PC or Xbox with an IP address of 192.168.0.1 in the same folder as the AppxManifest to the app1_F5 directory under the deployment path of the device.

Registers the app at the app1_F5 directory under the deployment path of the PC or Xbox at 192.168.0.1.

Using WinAppDeployCmd to set up Run from PC deployment on Xbox One

Run from PC allows you to deploy a UWP application to an Xbox One without copying the binaries over, instead the binaries are hosted on a network share on the same network as the Xbox. In order to do this, you need a developer unlocked Xbox One, and a loose file UWP application on a network drive that the Xbox can access.

Windows phone applications deployment

Перед прочтением темы настоятельно рекомендую ознакомиться со Справками и инструкциями Microsoft.

Если какие-то пункты FAQ’a совместимы только с WP7 или WP8, дайте знать об этом в QMS gavrila

Сообщение отредактировал zheka_x — 23.11.13, 14:40

Сообщение отредактировал gavrila — 31.07.15, 14:40

Как устанавливать приложения и игры из XAP?

alex
Для установки приложения из XAP, на Вашем смартфоне должен быть сделан джейлбрейк. Подробности можно узнать здесь.

Способ №1:

  1. Установите Windows Phone Developer Tools
  2. Откройте Application Deployment tool (Пуск-> Windows Phone Developer Tools -> Application Deployment) и следуете инструкциям.

Способ №2:
1 этап:

  1. Установите Windows Phone Developer Tools
  2. Скачайте и распакуйте архив с последней версией Tom XAP Installer
  3. Запустите Tom XAP Installer.exe
  4. Поставьте галочку около «Enable Tom XAP Installer» и закройте окно

Примечание: действия описанные в 1 этапе нужно выполнить только один раз. Желательно не удалять и не перемещать Tom XAP Installer.exe

2 этап:

  1. Подключите устройство к ПК
  2. Запустите Zune
  3. Проверьте, что устройство не заблокировано (т.е. открыт начальный экран)
  4. Скачайте приложение в .xap
  5. Откройте его
  6. Нажмите Install и дождитесь окончания установки

Способ №3:

  1. Скачайте и распакуйте архив с последней версией Homebrew Windows Phone 7 Market
  2. Откройте XAPDeployX.exe
  3. Выберите куда вам необходимо установить XAP (Windows Phone 7 Device — Устройство, Windows Phone 7 Emulator — Эмулятор)
  4. Нажмите Browse и выберите XAP, который вам необходимо установить и нажмите Открыть. Также вы можете просто перетащить XAP на программу, не нажимая кнопку Browse.

  5. Нажмите кнопку Deploy

Преимуществом третьего способа можно считать отсутствие необходимости устанавливать Windows Phone 7 Developers Tools. Также, есть альтернативный вариант выполнения третьего шага — в Homebrew Windows Phone 7 Market нажмите Options и выберите «Register filehandler». После данной операции вы можете просто открывать XAP файлы в проводнике, Homebrew Windows Phone 7 Market будет запускаться автоматически.

Список возможных ошибок при установке приложений и их решение:

Сообщение отредактировал Alex — 04.02.12, 22:57

Как устанавливать приложения и игры из Marketplace?

alex
Загружайте приложения и игры с телефона или на ПК, где бы Вы ни находились.
Загляните в Marketplace – виртуальный магазин Microsoft, предлагающий приложения, игры и другие развлечения для Вашего телефона. Многие приложения и игры в Marketplace бесплатны, остальные можно опробовать до покупки.

Прежде, чем Вы опробуете или купите приложение или игру
— Используя Ваш Windows Live ID, войдите в службу Windows Live для получения доступа к сервисам Windows Live, Zune и Xbox LIVE.
— Установите программное обеспечение Zune для синхронизации приложений и игр между Вашим ПК и телефоном.

Загружайте приложения в Ваш телефон

  1. Чтобы начать, нажмите на значок Marketplace
  2. Нажимайте значки приложений.
  3. Двигайте экран влево или вправо, чтобы увидеть наиболее популярные, новые или связанные приложения, а также для доступа к категориям. Когда Вы найдете нужное приложение или игру, нажмите на нее.
  4. Если Вы хотите установить бесплатное приложение или игру, нажмите Установить (Install) дважды, чтобы подтвердить установку и скачать его на Ваш телефон.
  5. Если Вы хотите приобрести приложение или игру:
    1. Нажмите Купить (Buy) для приобретения платного приложения.
    2. Или нажмите Попробовать (Try) (если это доступно) для установки пробной версии приложения.

    Выполните одно из перечисленных действий:

    • Если Вы скачиваете пробную версию приложения, нажмите Установить (Install).
    • Если Вы приобретаете приложение, нажмите Купить (Buy), выберите удобный Вам способ платежа (Вы можете оплачивать приложения кредитной картой или со своего мобильного счета) и нажмите Купить (Buy) еще раз.

    Памятка
    По умолчанию плата за покупки списывается с Вашего мобильного счета или включается в счет, если у Вас постоплатный тариф (данная услуга должна поддерживаться Вашим мобильным оператором, в России этот метод недоступен). Или Вы можете использовать Вашу кредитную карту: в диалоге Подтверждения покупки (Purchase screen) нажмите Изменить способ оплаты (Change payment method) и выберите Добавить кредитную карту (Add a credit card) (или сразу нажмите Добавить кредитную карту (Add a credit card)). Далее следуйте инструкциям на экране Вашего телефона.


    Скачивание и установка приложения или игры займет несколько минут, в зависимости от объема загружаемых данных. Прогресс загрузки виден на экране.

    Советы

    • Чтобы проверить прогресс установки приложения или игры, которые Вы в данный момент загружаете, нажмите Проверить установку (Check install)
    • Чтобы приостановить загрузку приложения, нажмите и удерживайте его иконку на экране загрузки Marketplace (нажмите Проверить установку (Check install) или ссылку на загрузку в нижней части хаба Marketplace), затем нажмите паузу. Для возобновления загрузки приложения, нажмите и удерживайте его иконку, затем нажмите Продолжить (Resume).

    Вы найдете Ваши новые приложения в Списке программ (App list) (сдвиньте экран влево от Начального экрана (Start)). Вы найдете Ваши новые игры в хабе Игры (Games) (на Начальном экране (Start) нажмите Игры (Games) и сдвиньте экран влево к коллекции).

    Совет
    Ищете определенное приложение или игру? Войдите в Marketplace и нажмите Поиск (Search).

Загрузите приложения на Ваш ПК

  1. Подключите Ваш телефон к ПК используя usb-кабель.
  2. На Начальном экране (Start), нажмите Все программы (All programs), затем нажмите Zune.
  3. Если Вы не вошли, нажмите Войти (Sign In), затем войдите, используя тот же идентификатор Windows Live ID, который Вы используете на Вашем телефоне.
  4. Нажмите Marketplace > Apps. В Устройствах (Devices) нажмите Windows Phone.
  5. Ищите приложения или игры по жанру или используя Поиск (Search box).
  6. Нажмите на заинтересовавшее Вас приложение, затем нажмите Опробовать бесплатно (Free trial) или Купить (Buy), чтобы опробовать или купить приложение или игру. Или нажмите Бесплатно (Free) для установки бесплатного приложения. Следуйте инструкциям на экране. Если Вы хотите добавить в Ваш аккаунт информацию о новой кредитной карте, Вы можете добавить ее из программного обеспечения Zune, установленного на Вашем ПК (нажмите Установки > Аккаунт > Добавить кредитную карту (Settings > Account > Add a credit card) или перейдите по ссылке в Zune Account Center.
  7. Чтобы увидеть приложения и игры на Вашем телефоне, отсоедините его от ПК. Вы найдете:
    • Приложения – в Списке программ (Apps list) сдвиньте экран влево от начального экрана (Start).
    • Игры — в хабе Игры (Games) (на Начальном экране (Start) нажмите Игры (Games) и сдвиньте экран влево к коллекции).

Примечание

  • Приложения синхронизируются напрямую с Вашим телефоном и не добавляются в коллекцию Zune на Вашем ПК.
  • Если Вы приобрели Ваше приложение в Zune в то время, как Ваш телефон не был соединен с ПК, приложение будет загружено по беспроводному соединению в течение 24 часов. Если Вы впоследствии подключите Ваш телефон к Вашему ПК, загрузка будет продолжена по беспроводному соединению.
  • Marketplace может быть недоступен в Вашей стране или регионе.

Сообщение отредактировал gavrila — 02.04.12, 14:34

С помощью каких программ можно подключить смартфон к компьютеру?

Читайте также:  Обновить драйвера для windows 10 pro
Оцените статью