cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Detlev
Engaged Sweeper
Hi there i am newbie on LanSweeper,

i would like to uninstall on any of my clients the TeamViewer Application.

TW is a custom installer and ask me for addictional parameter (i know is "/s") but if i give this parameter nothing happens.

Where is the problem ?

Thank's for your help.

Detlev




1 ACCEPTED SOLUTION
MD2Tech
Engaged Sweeper II
You might have some luck if you do it as a Deployment Package and run a command line or script.

You could run the command line

"C:\Program Files [x86]\Path_to_uninstaller\uninstall.exe" /s or /S


Or you could put that into a .bat file and use a Deployment Package to run that batch file on the remote machine.

Another solution... and I hope no one gets onto me for this... is to use psexec to run the command on the remote machine. I've done this many times on all sorts of software that I couldn't remove using Powershell or WMIC.

View solution in original post

7 REPLIES 7
CyberCitizen
Honored Sweeper
Teamview has been a real pain with the various installers they have, happy they are using msi now.
but this is what I am using to removing all traces so I can reinstall.

:Stop TeamViewer Service
SC STOP TeamViewer

:Waits 10 Seconds
TIMEOUT /T 10 /NOBREAK

:Attempt Uninstalls
echo product where "name like 'TeamViewer%%'" call uninstall /nointeractive|wmic && shutdown /a
"%programfiles(x86)%\TeamViewer\uninstall.exe" /S

:Kill Processes
taskkill /im TeamViewer.exe /f /t
taskkill /im TeamViewer_Service.exe /f /t
taskkill /im tv_w32.exe /f /t
taskkill /im tv_x64.exe /f /t

:Waits 5 Seconds
TIMEOUT /T 5 /NOBREAK

:Delete Registry Key Entries
reg delete HKLM\SOFTWARE\TeamViewer /f
reg delete HKLM\SOFTWARE\TeamViewer /f /reg:64
reg delete HKLM\SOFTWARE\WOW6432Node\TeamViewer /f
reg delete HKLM\SOFTWARE\WOW6432Node\TeamViewer /f /reg:64
REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\TeamViewer /f
REG DELETE HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\TeamViewer /f /reg:64

:Delete Files
DEL /S /F /Q "C:\Program Files (x86)\TeamViewer"
DEL /S /F /Q "C:\Program Files\TeamViewer"
RD /S /Q "C:\Program Files (x86)\TeamViewer"
RD /S /Q "C:\Program Files\TeamViewer"

:Install TeamViewer
msiexec.exe /i "\\SERVER\Apps$\Teamviewer\MSI\TeamViewerMSI.v15.26.4.0\Host\TeamViewer_Host.msi" /norestart /qn TRANSFORMS="\\SERVER\Apps$\Teamviewer\MSI\TeamViewerMSI.v15.26.4.0\Host\TeamViewer_Host.v15.Settings.mst" /l*v "C:\Windows\Temp\Install.TeamViewer.log"
Esben_D
Lansweeper Employee
Lansweeper Employee
Simply deploying the following command should work if you have no MSI. You might have to adjust the path if you have TV installed in a non-default location.

"%programfiles(x86)%\TeamViewer\uninstall.exe" /S
Esben_D
Lansweeper Employee
Lansweeper Employee
If teamviewer used a MSI installer, you can simply copy the built-in package "MSI-Uninstaller - Firefox 27.0" and change it to uninstall teamviewer.


Otherwise I think what MD2Tech posted still works.
Charles.X wrote:
If teamviewer used a MSI installer, you can simply copy the built-in package "MSI-Uninstaller - Firefox 27.0" and change it to uninstall teamviewer.


Otherwise I think what MD2Tech posted still works.


No mi instalación no fue MSI
Berlyamin_Reyes
Engaged Sweeper
I need help to uninstall TeamViewer silently, I currently have Windows 10 pro and windows 7 Pro
eismannb
Engaged Sweeper II
Teamviewer make a bad uninstall

use a batch (this is for Host version):

net stop "TeamViewer"

wmic product where "name = 'Teamviewer 12 Host'" call uninstall /nointeractive
wmic product where "name = 'Teamviewer 12 Host (MSI Wrapper)'" call uninstall /nointeractive

reg delete HKLM\SOFTWARE\TeamViewer /f
reg delete HKLM\SOFTWARE\WOW6432Node\TeamViewer /f
reg delete HKU\.DEFAULT\Software\Wow6432Node\TeamViewer /f
reg delete HKU\.DEFAULT\Software\TeamViewer /f
reg delete HKU\S-1-5-18\Software\TeamViewer /f
reg delete HKU\S-1-5-18\Software\Wow6432Node\TeamViewer /f
reg delete HKU\S-1-5-18\Software\TeamViewer /f
exit
MD2Tech
Engaged Sweeper II
You might have some luck if you do it as a Deployment Package and run a command line or script.

You could run the command line

"C:\Program Files [x86]\Path_to_uninstaller\uninstall.exe" /s or /S


Or you could put that into a .bat file and use a Deployment Package to run that batch file on the remote machine.

Another solution... and I hope no one gets onto me for this... is to use psexec to run the command on the remote machine. I've done this many times on all sorts of software that I couldn't remove using Powershell or WMIC.

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now