Rename SunshineSvc to SunshineService

This avoids a MalwareBytes false positive.

Fixes #1126
This commit is contained in:
Cameron Gutman
2023-05-25 23:48:34 -05:00
parent 60ebafd15a
commit 9a65c91671
5 changed files with 16 additions and 10 deletions

View File

@@ -3,13 +3,17 @@
rem Get sunshine root directory
for %%I in ("%~dp0\..") do set "ROOT_DIR=%%~fI"
set SERVICE_NAME=sunshinesvc
set SERVICE_NAME=SunshineService
set SERVICE_BIN="%ROOT_DIR%\tools\sunshinesvc.exe"
rem Set service to demand start. It will be changed to auto later if the user selected that option.
set SERVICE_START_TYPE=demand
rem Check if sunshinesvc already exists
rem Remove the legacy SunshineSvc service
net stop sunshinesvc
sc delete sunshinesvc
rem Check if SunshineService already exists
sc qc %SERVICE_NAME% > nul 2>&1
if %ERRORLEVEL%==0 (
rem Stop the existing service if running