Overview
In some cases, you might want to install a new version of M-Files for some users without uninstalling the current version, for example for testing the new version, while enabling the test users to use the current version at the same time. When running the installer manually, you get to select whether to upgrade the current version or to keep the current version and install the new version in addition to the current version. This article shows how to achieve the same silently without user interaction.
Solution
To install a new version without uninstalling the current version, run the .msi package with this parameter:
M_UNINSTALL_PREVIOUS_*="0"
Replace * with the component that you are installing: CLIENT, SERVER, SERVERTOOLS, or COMMON.
The parameter M_UNINSTALL_PREVIOUS_*="0" must be coupled with the parameter M_SIMPLE_UPGRADE="0". Otherwise M-Files will perform a simple upgrade and as part of the simple upgrade remove the previous version.
For example:
msiexec /package M-Files_x64_eng_20_3_8876_7.msi M_SIMPLE_UPGRADE="0" M_UNINSTALL_PREVIOUS_CLIENT="0" /qb!
You can also prevent the new installation from migrating settings from the previous version to the new version by adding the parameter M_MIGRATE_*="0". For example:
msiexec /package M-Files_x64_eng_ 20_3_8876_7.msi M_SIMPLE_UPGRADE="0" M_UNINSTALL_PREVIOUS_CLIENT="0" M_MIGRATE_CLIENT="0" /qb!
For more details on custom installations, please refer to this document:
