8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 10:03:03 +01:00
firebird-mirror/builds/install/arch-specific/win32/install_service.bat
Paul Reeves 3c093f0b33 Fix #7911 - allow spaces in service name
when (un)installing via (un)install_service.bat
2024-06-21 13:27:35 +02:00

20 lines
392 B
Batchfile

@echo off
if "%~1"=="" (
instreg install -z
)
setlocal
set INSTALL_SERVICE=install -z
set START_SERVICE=start
if not "%~1"=="" (
set INSTALL_SERVICE=%INSTALL_SERVICE% -n %1
set START_SERVICE=%START_SERVICE% -n %1
)
instsvc %INSTALL_SERVICE%
instsvc %START_SERVICE%
endlocal
@echo.
@echo Firebird installed and started as a service using
@echo architecture specified in firebird.conf.
@echo.