[TIMOB-25616] Windows: Add option to suppress/force uninstallation on deploy
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-02-22T22:43:25.000+0000 |
Affected Version/s | Release 7.0.0 |
Fix Version/s | Release 7.1.0 |
Components | Windows |
Labels | n/a |
Reporter | Kota Iguchi |
Assignee | Kota Iguchi |
Created | 2017-12-18T04:54:06.000+0000 |
Updated | 2018-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.
https://github.com/appcelerator/titanium_mobile_windows/pull/1168 https://github.com/appcelerator/windowslib/pull/83
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)Created TIMOB-25743 to keep track on this topic.