From 788e6ed610d520bf37bea9baa0139d44b89036f0 Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Fri, 17 Feb 2023 13:16:25 +0100 Subject: [PATCH] bugfix: teams changed its behaviour --- optional/users/install-teams.cmd | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/optional/users/install-teams.cmd b/optional/users/install-teams.cmd index a692d43..b978b77 100644 --- a/optional/users/install-teams.cmd +++ b/optional/users/install-teams.cmd @@ -1,6 +1,7 @@ @echo off set EXE=%SystemDrive%\tools\software\teams-setup.exe +set STARTMENU_USER=%APPDATA%\"Microsoft\Windows\Start Menu\Programs" if NOT EXIST %EXE% ( echo ERROR: %EXE% not found! @@ -11,7 +12,7 @@ echo ####### %0 ####### echo killing Teams process ... taskkill /F /IM teams.exe 2>nul -timeout /nobreak 5 +timeout /T 3 echo cleaning cache ... deltree "%USERPROFILE%\AppData\Roaming\Microsoft\Teams" @@ -22,8 +23,8 @@ deltree "%USERPROFILE%\AppData\Local\Microsoft\TeamsPresenceAddin" echo installing Microsoft Teams ... start /wait %EXE% -s -echo renaming Teams desktop link ... -move /Y "%USERPROFILE%\Desktop\Microsoft Teams.lnk" "%USERPROFILE%\Desktop\Teams.lnk" +echo copying Teams link to desktop ... +copy /Y %STARTMENU_USER%\"Microsoft Teams.lnk" "%USERPROFILE%\Desktop\Teams.lnk" rem refresh desktop (W10 style) ie4uinit.exe -show