2022-11-13 22:12:39 +01:00
|
|
|
@echo off
|
|
|
|
|
2023-02-16 14:32:10 +01:00
|
|
|
set EXE=%SystemDrive%\tools\software\teams-setup.exe
|
2022-11-13 22:12:39 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|