Skip to content

Commit 3c093f0

Browse files
committed
Fix #7911 - allow spaces in service name
when (un)installing via (un)install_service.bat
1 parent 08997a6 commit 3c093f0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
@echo off
2-
if "%1"=="" (
2+
if "%~1"=="" (
33
instreg install -z
44
)
55
setlocal
66
set INSTALL_SERVICE=install -z
77
set START_SERVICE=start
8-
if not "%1"=="" (
8+
if not "%~1"=="" (
99
set INSTALL_SERVICE=%INSTALL_SERVICE% -n %1
1010
set START_SERVICE=%START_SERVICE% -n %1
1111
)
1212
instsvc %INSTALL_SERVICE%
1313
instsvc %START_SERVICE%
1414
endlocal
1515
@echo.
16-
@echo Firebird installed and started as a service using
16+
@echo Firebird installed and started as a service using
1717
@echo architecture specified in firebird.conf.
1818
@echo.
1919

builds/install/arch-specific/win32/uninstall_service.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
setlocal
33
set REMOVE_SERVICE=remove -z
44
set STOP_SERVICE=stop
5-
if not "%1"=="" (
5+
if not "%~1"=="" (
66
set STOP_SERVICE=%STOP_SERVICE% -n %1
77
set REMOVE_SERVICE=%REMOVE_SERVICE% -n %1
88
)
99
instsvc %STOP_SERVICE%
1010
instsvc %REMOVE_SERVICE%
1111
endlocal
1212

13-
if "%1"=="" (instreg remove -z)
13+
if "%~1"=="" (instreg remove -z)

0 commit comments

Comments
 (0)