/build/static/layout/Breadcrumb_cap_w.png

K1000 Version: 12.1.169 SMA Distribution>Managed Installations>Silent Intall for Team Viewer

I am attempting to deploy the Host TeamViewer to 500+ PCs and the script below was created to delete any old versions that may be installed and install a new version. The SMA is setup for this Managed Install, but when i try to deploy this to a test device, all i see is the KACE prompt acknowledging a task has been initiated on that machine, then reports its complete.  I have selected the proper Software from the dropdwon in KACE, chose to associate it with a .zip that includes the .bat, MSI and config file.The script below is set as the Override default Installation command line info. What am i doing wrong?


: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"

ECHO Installing Version 15 HOST
MSIEXEC /i "TeamViewer_Host.msi" CUSTOMCONFIGID=559jkpu APITOKEN=11698015-2H5LBYLHdQsYm0ss4tYw ASSIGNMENTOPTIONS="--grant-easy-access --group NewComputers" /qn


SMA setup-

3gqsXVfQ3McAAAAAElFTkSuQmCC


0 Comments   [ + ] Show comments

Answers (1)

Posted by: nick.wood 1 year ago
Yellow Belt
1

I suggest putting your script into a batch file. Zip that and the MSI together, and use the ZIP as the associated file for this managed install. Be sure when you zip everything you zip the actual files and not a parent folder or KACE won't reference it correctly.

So a structure like this:

TeamViewer.zip
  -  installTeamViewer.bat
  -  TeamViewer_Host.msi

Then, your managed install override command should simply be   installTeamViewer.bat

Also, be sure to check "Don't prepend msiexec.exe"


Comments:
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ