w10install/optional/install-sharemouse.cmd
2022-05-28 22:05:39 +02:00

26 lines
569 B
Batchfile

@echo off
set CONFIG=config\install-sharemouse.txt
set EXE=..\software\sharemouse-setup.exe
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
if NOT EXIST %EXE% (
echo ERROR: %EXE% not found!
exit /b
)
echo ####### %0 #######
echo killing ShareMouse processes...
taskkill /F /IM sharemouse.exe 2>nul
echo installing ShareMouse ...
start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS
rem refresh desktop (W10 style)
ie4uinit.exe -show
echo ####### %0 #######
pause