Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25616] Windows: Add option to suppress/force uninstallation on deploy

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2018-02-22T22:43:25.000+0000
Affected Version/sRelease 7.0.0
Fix Version/sRelease 7.1.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2017-12-18T04:54:06.000+0000
Updated2018-02-22T22:43:31.000+0000

Description

In TIMOB-25017, we've been seeing that the persistent in app properties are erased every time on the installation. We found that it is because WinAppDeployCmd fails when same version of the app is already installed, and then Titanium tries to uninstall existing app in order to complete the installation. We can suppress the uninstallation by bumping up the version in the tiapp.xml everytime on deployment, but sometimes uninstallation can be done unintentionally when you forget the bump. We might want a new option to suppress unintentional uninstallation by forcing --forceUnInstall or something explicitly.

Comments

  1. Kota Iguchi 2017-12-19

    https://github.com/appcelerator/titanium_mobile_windows/pull/1168 https://github.com/appcelerator/windowslib/pull/83
  2. Kota Iguchi 2018-02-01

    Here's some starting point to discuss: - Do we accept the difference between version numbering in tiapp.xml and actual app? Note that Developers may want to determine specific version number for the release build. - We could introduce special placeholder like <version>1.0.*</version> but this may cause breaking change and parity issue between platforms. Do we wan to do like this? Or we could just say "If you omit the build number, we just automatically increment it behind scenes, only on Windows platform". - Do we accept this breaking change regarding new version numbering spec? - Do we want to enable it by default? Otherwise do we want to introduce new property in tiapp.xml like <enable-auto-build-numvering/> or so? - Do we want to introduce this new version numbering spec for other platforms? Do we want to keep parity for it? - Do we want to make it configurable from Appc Studio? For instance ["Automatically increment" checkbox in UWP packager](https://docs.microsoft.com/en-us/windows/uwp/packaging/images/packaging-screen5.jpg)
  3. Kota Iguchi 2018-02-02

    Created TIMOB-25743 to keep track on this topic.
  4. Samir Mohammed 2018-02-22

JSON Source