We have recently upgraded license from Premium to Corporate to take advantage of the mass deployment options. We are an Intune shop in the most part so following the Intune deployment guide here: TeamViewer User Guide for Intune - TeamViewer Support. All works well if the host isn't already installed.
The problem is that for devices that have had the software installed manually (this was our only option up till now) the installation fails in Intune with "Fatal error during installation (0x80070643)".
I have had to create a new custom module in order to set up the deployment as for the existing one (manually installed on existing devices) the option to 'allow account assignment' was unticked and greyed out so I was not able to obtain the API token value for the account assignment.
I suspect this is the root of the issue in that Intune is not able to see that a version is already installed as the MSI values will be different therefor its not detecting the existing one.
Is there a switch or something to uninstall all previous TV versions prior to installing the latest one?
Is there any way around this without manually uninstalling TeamViewer on each device. I want to get to a stage where I can target an app deployment to a bunch of devices and see that the required host is deployed successfully (in Intune) and registered correctly (in TeamViewer console).