w10install/optional/install-teams.cmd

34 lines
754 B
Batchfile
Raw Normal View History

2022-11-13 22:12:39 +01:00
@echo off
set EXE=..\software\teams-setup.exe
if NOT EXIST %EXE% (
echo ERROR: %EXE% not found!
exit /b
)
echo ####### %0 #######
2022-12-12 17:18:20 +01:00
echo killing Teams process ...
taskkill /F /IM teams.exe 2>nul
2022-12-29 17:01:45 +01:00
timeout /nobreak 5
2022-12-12 17:18:20 +01:00
echo cleaning cache ...
deltree "%USERPROFILE%\AppData\Roaming\Microsoft\Teams"
deltree "%USERPROFILE%\AppData\Local\Microsoft\Teams"
deltree "%USERPROFILE%\AppData\Local\Microsoft\TeamsMeetingAddin"
deltree "%USERPROFILE%\AppData\Local\Microsoft\TeamsPresenceAddin"
2022-11-13 22:12:39 +01:00
echo installing Microsoft Teams ...
start /wait %EXE% -s
echo renaming Teams desktop link ...
move /Y "%USERPROFILE%\Desktop\Microsoft Teams.lnk" "%USERPROFILE%\Desktop\Teams.lnk"
rem refresh desktop (W10 style)
ie4uinit.exe -show
echo ####### %0 #######
pause