From 413360ece21deb2422ae6175d632972a38e198e2 Mon Sep 17 00:00:00 2001 From: Din Date: Mon, 28 Apr 2025 15:37:53 +0800 Subject: [PATCH] Fix service name in firewall configuration and installation scripts --- publish/configure_firewall.ps1 | 2 +- publish/install-service.bat | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/publish/configure_firewall.ps1 b/publish/configure_firewall.ps1 index b2ee377..143c5cd 100644 --- a/publish/configure_firewall.ps1 +++ b/publish/configure_firewall.ps1 @@ -1,6 +1,6 @@ # PowerShell script to create a new inbound rule in Windows Firewall $port = 5000 -$ruleName = "ResourceMonitorService" +$ruleName = "ResourceMonitorServicePublish" if (Get-NetFirewallRule -DisplayName $ruleName) { Write-Host "Rule already exists, not creating a new one" } else { diff --git a/publish/install-service.bat b/publish/install-service.bat index 5728052..808fc57 100644 --- a/publish/install-service.bat +++ b/publish/install-service.bat @@ -1,4 +1,4 @@ -sc create ResourceMonitorServicerrr binPath= "%~dp0ResourceMonitorService.exe --windows-service" start= auto -sc description ResourceMonitorServicerrr "A service that monitors system resource usage and exposes it via a web API." +sc create ResourceMonitorService binPath="%~dp0ResourceMonitorService.exe --windows-service" start= auto +sc description ResourceMonitorService "A service that monitors system resource usage and exposes it via a web API."