Remove only client version of TeamViewer from Command Line

Hi, I have deployed TeamViewer with a a few arguments as a batch script with an msi and mst file ( The script performs a quiet install with transformations ). Unfortunately, some computers that need the host version have the client version already installed. I am unable to simply add an uninstall on the script as the client and host versions have the same name on the drive, and the script runs on every logon. I was just wondering whether or not there is a way to check which version of TeamViewer is installed, and uninstall the client version accordingly, then proceeding with the usual host install. Is there any way to request the version through command line and then run a script dependent on it's output?