Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24934] Windows: App fails to install to device if newer VCLibs package exists

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2017-09-25T13:59:11.000+0000
Affected Version/sRelease 6.1.1, Release 6.2.0
Fix Version/sRelease 6.3.0
ComponentsWindows
Labelsmerge-6.3.0
ReporterEwan Harris
AssigneeKota Iguchi
Created2017-07-05T13:38:26.000+0000
Updated2017-10-09T15:18:45.000+0000

Description

Description

When building to a device currently my build fails with A debug application is already installed, please remove existing debug application which is not the case. Running winappdeploycmd manually worked so I dug into it and logged the output, the install of VCLibs is failing because I have a newer on the device (I assume this is because I used the device for my VS2017 testing)
[ 'install',
  '-file',
  'C:\\Users\\ewan\\.titanium\\vsbuild\\testApp\\win10.ARM\\AppPackages\\TestApp\\TestApp_1.0.0.0_Debug_Test\\Dependencies\\ARM\\Microsoft.VCLibs.ARM.Debug.14.00.appx',
  '-ip',
  '127.0.0.1' ]
2148734208
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.

0x80131500 - Failed to install or update package: Windows cannot install package Microsoft.VCLibs.140.00.Debug_14.0.24210.0_arm__8wekyb3d8bbwe because it has version 14.0.24210.0. A higher version 14.0.25023.0 of this package is already installed.
0x80073d06
0x80131500 - Windows cannot install package Microsoft.VCLibs.140.00.Debug_14.0.24210.0_arm__8wekyb3d8bbwe because it has version 14.0.24210.0. A higher version 14.0.25023.0 of this package is already installed.
0x80073d06

Steps to reproduce

*The setup here is kinda difficult*

Ensure you have VCLibs 14.0.25023.0 on your device (you can do this by building with VS2017

Build an application to the device using a machine with VS2015

Actual

Build process errors with A debug application is already installed, please remove existing debug application

Expected

Build process should either error telling a user to uninstall the VCLibs (not preferable as they didn't but them there, we did), or (preferably) we handle this error by ignoring the failure for VCLibs or only adding when needed (check if they exist before even installing)

Comments

  1. Kota Iguchi 2017-07-05

    [~eharris] I'm wondering if you could use --skipInstallDependencies in this case. It is introduced as of 6.1.0 to skip installing dependency packages. (See also [Windows Build Options](http://docs.appcelerator.com/platform/latest/#!/guide/Appcelerator_Command-Line_Interface_Reference-section-src-43294287_AppceleratorCommand-LineInterfaceReference-WindowsBuildOptions))
  2. Ewan Harris 2017-07-05

    [~kiguchi] Yes the --skipInstallDependencies flag works but to me this seems like an issue that we should solve for a user if possible as it's a dependency of the SDK
  3. Kota Iguchi 2017-09-06

    https://github.com/appcelerator/titanium_mobile_windows/pull/1096
  4. Kota Iguchi 2017-09-29

    6_3_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1124
  5. Ewan Harris 2017-10-09

    Verified in 6.3.0.v20171006185117 and 7.0.0.v20171009065347

JSON Source