2022-11-13 22:12:39 +01:00
|
|
|
@echo off
|
|
|
|
|
2023-02-16 14:32:10 +01:00
|
|
|
set EXE=%SystemDrive%\tools\software\telegram-setup.exe
|
2022-11-13 22:12:39 +01:00
|
|
|
set STARTMENU_USER="%APPDATA%\Microsoft\Windows\Start Menu\Programs"
|
|
|
|
|
|
|
|
if NOT EXIST %EXE% (
|
|
|
|
echo ERROR: %EXE% not found!
|
|
|
|
exit /b
|
|
|
|
)
|
|
|
|
|
|
|
|
echo ####### %0 #######
|
|
|
|
|
|
|
|
echo installing Telegram Desktop Client ...
|
|
|
|
start /wait %EXE% /silent /norestart %EXE%
|
|
|
|
|
|
|
|
echo moving Telegram startmenu shortcut ...
|
|
|
|
move /Y %STARTMENU_USER%\"Telegram Desktop\Telegram.lnk" %STARTMENU_USER%
|
|
|
|
|
|
|
|
echo removing Telegram startmenu folder ...
|
|
|
|
rd /S /Q %STARTMENU_USER%\"Telegram Desktop" 2>nul
|
|
|
|
|
|
|
|
rem refresh desktop (W10 style)
|
|
|
|
ie4uinit.exe -show
|
|
|
|
|
|
|
|
echo ####### %0 #######
|
|
|
|
pause
|
|
|
|
|