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)
[~eharris] I'm wondering if you could use
--skipInstallDependencies
in this case. It is introduced as of6.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))[~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 SDKhttps://github.com/appcelerator/titanium_mobile_windows/pull/1096
6_3_X: https://github.com/appcelerator/titanium_mobile_windows/pull/1124
Verified in 6.3.0.v20171006185117 and 7.0.0.v20171009065347