2021-08-29 18:23:50 +02:00
|
|
|
@echo off
|
|
|
|
|
2022-05-15 20:19:02 +02:00
|
|
|
set EXE=..\software\sonos2-setup.exe
|
2021-08-29 18:29:35 +02:00
|
|
|
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
2021-08-29 18:23:50 +02:00
|
|
|
|
|
|
|
if NOT EXIST %EXE% (
|
|
|
|
echo ERROR: %EXE% not found!
|
|
|
|
exit /b
|
|
|
|
)
|
|
|
|
|
|
|
|
echo ####### %0 #######
|
|
|
|
|
2022-05-15 20:19:02 +02:00
|
|
|
echo installing SONOS 2 client ...
|
2021-08-29 18:23:50 +02:00
|
|
|
start /wait %EXE% /L1031 /S /v/qn
|
|
|
|
|
2021-08-29 18:29:35 +02:00
|
|
|
echo moving SONOS startmenu shortcut ...
|
2021-08-29 18:33:00 +02:00
|
|
|
move /Y %STARTMENU%\"Sonos\Sonos.lnk" %STARTMENU%\Sonos.lnk
|
2021-08-29 18:29:35 +02:00
|
|
|
|
|
|
|
echo removing SONOS startmenu folder ...
|
|
|
|
rd /S /Q %STARTMENU%\"Sonos" 2>nul
|
2021-08-29 18:23:50 +02:00
|
|
|
|
|
|
|
rem refresh desktop (W10 style)
|
|
|
|
ie4uinit.exe -show
|
|
|
|
|
|
|
|
echo ####### %0 #######
|
|
|
|
pause
|
|
|
|
|