diff --git a/optional/config/install-sharemouse.txt b/optional/config/install-sharemouse.txt new file mode 100644 index 0000000..0067f98 --- /dev/null +++ b/optional/config/install-sharemouse.txt @@ -0,0 +1,6 @@ +[Setup] +Lang=en +Dir=C:\Program Files\ShareMouse +Group=ShareMouse +NoIcons=0 +Tasks= diff --git a/optional/install-sharemouse.cmd b/optional/install-sharemouse.cmd new file mode 100644 index 0000000..4233f7e --- /dev/null +++ b/optional/install-sharemouse.cmd @@ -0,0 +1,25 @@ +@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 +