From d15c1af1529fc9046121be60e65b1e87fffc1ed6 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 19 Jul 2021 08:32:16 -0500 Subject: [PATCH] Add uninstall-service.bat --- appveyor.yml | 1 + tools/uninstall-service.bat | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 tools/uninstall-service.bat diff --git a/appveyor.yml b/appveyor.yml index c2ea669b..bee10a61 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -35,6 +35,7 @@ after_build: - cmd: 7z a Sunshine-Windows.zip tools\audio-info.exe - cmd: 7z a Sunshine-Windows.zip tools\sunshinesvc.exe - cmd: 7z a Sunshine-Windows.zip ..\tools\install-service.bat + - cmd: 7z a Sunshine-Windows.zip ..\tools\uninstall-service.bat - cmd: appveyor PushArtifact Sunshine-Windows.zip - sh: appveyor PushArtifact package-deb/sunshine.deb - sh: appveyor PushArtifact sunshine.service diff --git a/tools/uninstall-service.bat b/tools/uninstall-service.bat new file mode 100644 index 00000000..8e6d3547 --- /dev/null +++ b/tools/uninstall-service.bat @@ -0,0 +1,7 @@ +@echo off + +set SERVICE_NAME=sunshinesvc + +net stop %SERVICE_NAME% + +sc delete %SERVICE_NAME%