8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 22: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 @echo off
if "%1"=="" ( if "%~1"=="" (
instreg install -z instreg install -z
) )
setlocal setlocal
set INSTALL_SERVICE=install -z set INSTALL_SERVICE=install -z
set START_SERVICE=start set START_SERVICE=start
if not "%1"=="" ( if not "%~1"=="" (
set INSTALL_SERVICE=%INSTALL_SERVICE% -n %1 set INSTALL_SERVICE=%INSTALL_SERVICE% -n %1
set START_SERVICE=%START_SERVICE% -n %1 set START_SERVICE=%START_SERVICE% -n %1
) )

View File

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