I was looking into the uninstall functionality for app packages and noticed in the RN the following sentence:
“When you install an app with the AllowMultipleInstalledVersions option set to false, the uninstall script of that app (if present) will automatically be triggered. Also, the uninstall will be executed forcefully, meaning that the app will be removed even when the script fails.”
We want to avoid that when a user installs a newer version on top, that data linked to the solution is removed. Is there a way to differentiate if the uninstall is called through an uninstall action or if the uninstall was called as part of installing another version?
Or should we (and how) set the ‘AllowMultipleInstalledVersions’ to true to avoid that data is being cleaned up during an upgrade to a newer version?