20 lines
440 B
Batchfile
20 lines
440 B
Batchfile
@echo off
|
|
|
|
PUSHD %~dp0..
|
|
call runasadmin.bat "%~dpnx0"
|
|
|
|
if %errorlevel% == 0 (
|
|
PUSHD %~dp0..\..
|
|
setlocal EnableDelayedExpansion
|
|
for /R "build\run\" %%f in (*.bat) do (
|
|
call build\run\%%~nxf
|
|
echo service create "Onlyoffice%%~nf"
|
|
call sc create "Onlyoffice%%~nf" displayname= "ONLYOFFICE %%~nf" binPath= "!servicepath!"
|
|
)
|
|
for /R "build\run\" %%f in (*.xml) do (
|
|
call build\install\win\WinSW3.0.0.exe install %%f
|
|
)
|
|
)
|
|
|
|
echo.
|
|
pause |