mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 21:23:04 +01:00
Fix #7911 - allow spaces in service name
when (un)installing via (un)install_service.bat
This commit is contained in:
parent
7aa8f12c27
commit
7d52ff317b
@ -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
|
||||
)
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user