Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23181] Windows: Install of app to Windows 10 Mobile device fails on second build of application

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-04-13T13:12:11.000+0000
Affected Version/sRelease 5.3.0
Fix Version/sRelease 5.3.0, windowslib 0.4.6, windowslib 0.4.7, windowslib 0.4.8
ComponentsWindows
Labelsqe-5.3.0, usability
ReporterEwan Harris
AssigneeKota Iguchi
Created2016-04-09T00:00:48.000+0000
Updated2016-08-11T12:46:34.000+0000

Description

Description

When building a app to a Windows 10 Mobile device a second time the application fails to install with the below error
[ERROR] Failed to install app (code 0x80073CFB): Deployment of package com.prod.classic_1.0.0.0_arm__d7c8pgvss6ysm was blocked because the provided package has the same identity as an already-installed package but the contents are different. Increment the version number of the package to be installed, or remove the old package for every user on the system before installing this package.
It seems that we should either increment the packages version number each build or handle the fail case accordingly and uninstall and reinstall the app. I tried to use WinAppDeployCmd update to update the app, but that command failed with Windows cannot update package com.prod.classic_1.0.0.0_neutral_~_d7c8pgvss6ysm because the previous version is not installed. Install package com.prod.classic_1.0.0.0_neutral_~_d7c8pgvss6ysm instead of updating it., despite me using the same file as the install command used.

Steps to reproduce

1. Build to a Windows 10 Mobile phone using appc run -p windows -T wp-device --wp-sdk 10.0 2. Rebuild the app using appc run -p windows -T wp-device --wp-sdk 10.0

Actual result

The app fails to install, a developer will currently have to uninstall their app each build

Expected result

The app should be reinstalled, a developer should not have to remove the same application each time they build

Comments

  1. Kota Iguchi 2016-04-12

    https://github.com/appcelerator/windowslib/pull/36
  2. Christopher Williams 2016-04-12

    Merged to windowslib, published 0.4.6. Need to update titanium_mobile 5_3_X branch to use that now...
  3. Kota Iguchi 2016-04-13

    [~cwilliams] https://github.com/appcelerator/titanium_mobile/pull/7938 https://github.com/appcelerator/titanium_mobile/pull/7939
  4. Josh Longton 2016-04-14

JSON Source