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
echo product where "name like 'TeamViewer%%'" call uninstall /nointeractive|wmic && shutdown /a
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
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
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:
Then, your managed install override command should simply be installTeamViewer.bat
Also, be sure to check "Don't prepend msiexec.exe"