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