none
Deploying phonegap cordova apps to a windows 10 phone. RRS feed

  • Question

  • Our development workflow has always been building apps in the xap format via phonegap CLI v5.1 and then deploying to a phone using the windows 8.1 app deployment tool which we managed to dredge up for the muddy corners of the internet.

    However recently this has stopped working due to support for phonegap CLI v5.1 breaking, as well as support for windows phone 8 breaking meaning our apps were both impossible to build in the xap format, and even existing ones no longer worked after being deployed, throwing a certificate expired error when trying to connect to Microsoft which I assume is part of the retirement of windows phone 8.1.

    So we grudgingly updated everything to phonegap 6.5 in an attempt to fix this and moved over to the appx deployment process. This means our old 8.1 deployment tool no longer works so we have been searching for an alternative. We finally found the WinAppDeployCmd.exe tool located inside the Win10 SDK and managed to attempt to use it to deploy our app to a phone. But it throws an error which googling for just returns a bunch of stack overflow questions without answers. So here we are.

    The summation of my question is: we have a windows 10 .appx file built from phonegap build in one hand and a Nokia Lumia 650 in the other. How do we put the app onto the phone? I feel like we're missing something obvious here.

    The log of using WinAppDeployCmd.exe is:

    Microsoft Windows [Version 6.1.7601]

    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

    C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x86>WinAppDeployCmd.exe

    install -file C:\Users\sbossons\Desktop\MalaysianTrail.Windows10_1.6.11.0_x64.ap

    px -ip 127.0.0.1

    Windows App Deployment Tool

    Version 10.0.0.0

    Copyright (c) Microsoft Corporation. All rights reserved.

    Opening connection to device at '127.0.0.1'.

    Installing app...

    Disconnecting.

    0x80040154 - Retrieving the COM class factory for component with CLSID {5842A140

    -FF9F-4166-8F5C-62F5B7B0C781} failed due to the following error: 80040154 Class

    not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

    C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x86>WinAppDeployCmd.exe

    devices

    Windows App Deployment Tool

    Version 10.0.0.0

    Copyright (c) Microsoft Corporation. All rights reserved.

    Discovering devices...

    IP Address      GUID                                    Model/Name

    127.0.0.1       00000015-cae4-caf4-0000-000000000000    Lumia 650 (RM-1152)

    Done.

    C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x86>WinAppDeployCmd.exe

    install -file C:\Users\sbossons\Desktop\MalaysianTrail.Windows10_1.6.11.0_x64.ap

    px -guid 00000015-cae4-caf4-0000-000000000000

    Windows App Deployment Tool

    Version 10.0.0.0

    Copyright (c) Microsoft Corporation. All rights reserved.

    Opening connection to device at '00000015-cae4-caf4-0000-000000000000'.

    Installing app...

    Disconnecting.

    0x80040154 - Retrieving the COM class factory for component with CLSID {5842A140

    -FF9F-4166-8F5C-62F5B7B0C781} failed due to the following error: 80040154 Class

    not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

    C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x86>

    • Moved by Mattew Wu Thursday, August 3, 2017 7:43 AM not publishing issue
    • Moved by Dave PatrickMVP Monday, August 7, 2017 2:49 PM
    Wednesday, August 2, 2017 9:03 AM