> I didn�t think it was possible for that to be remotely installed
One explanation of how TeamViewer is installed is by initially pretending to be an Adobe Flash Player installer. More info here...
https://www.bleepingcomputer.com/virus-removal/remove-backdoor.teamviewer-trojan