8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 16:43:03 +01:00

Fix #7911 - allow spaces in service name

when (un)installing via (un)install_service.bat
This commit is contained in:
Paul Reeves 2024-06-21 13:27:35 +02:00
parent 08997a65d4
commit 3c093f0b33
2 changed files with 5 additions and 5 deletions

View File

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

View File

@ -2,7 +2,7 @@
setlocal
set REMOVE_SERVICE=remove -z
set STOP_SERVICE=stop
if not "%1"=="" (
if not "%~1"=="" (
set STOP_SERVICE=%STOP_SERVICE% -n %1
set REMOVE_SERVICE=%REMOVE_SERVICE% -n %1
)
@ -10,4 +10,4 @@ instsvc %STOP_SERVICE%
instsvc %REMOVE_SERVICE%
endlocal
if "%1"=="" (instreg remove -z)
if "%~1"=="" (instreg remove -z)