From b3356cebb331d5687a6dd3b86aa8263acd73bdfb Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Sun, 29 Aug 2021 20:01:19 +0200 Subject: [PATCH] integrated android tools --- optional/install-seafile.cmd | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 optional/install-seafile.cmd diff --git a/optional/install-seafile.cmd b/optional/install-seafile.cmd new file mode 100644 index 0000000..0b4a507 --- /dev/null +++ b/optional/install-seafile.cmd @@ -0,0 +1,36 @@ +@echo off + +set OPT=..\optional +set SOFTWARE=..\software +set MSI=seafile-setup.msi +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %SOFTWARE%\%MSI% ( + echo ERROR: %SOFTWARE%\%MSI% not found! + exit /b +) + +echo ####### %0 ####### + +echo installing SeaFile ... +cd %SOFTWARE% +@echo on +msiexec /i %MSI% /qn +@echo off +cd %OPT% + +echo removing SeaFile Desktop icon ... +del /F "%Public%\Desktop\SeaFile.lnk" 2>nul + +echo moving SeaFile startmenu shortcut ... +move /Y %STARTMENU%\"Seafile\Start Seafile.lnk" %STARTMENU%\SeaFile.lnk + +echo removing SeaFile startmenu folder ... +rd /S /Q %STARTMENU%\"Seafile" 2>nul + +echo refreshing desktop (W10 style) ... +ie4uinit.exe -show + +echo ####### %0 ####### +pause +