Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Fix Windows agent SC CREATE binPath quoting

rcourtman1d41920d9132
diff --git a/scripts/install.ps1 b/scripts/install.ps1
index e5b99cf34d..8cbbff3041 100644
--- a/scripts/install.ps1
+++ b/scripts/install.ps1
@@ -315,7 +315,7 @@ if (-not [string]::IsNullOrWhiteSpace($AgentId)) { $ServiceArgs += @("--agent-id
$BinPath = "`"$DestPath`" $($ServiceArgs -join ' ')"
# Create Service with error handling
-$scOutput = sc.exe create $AgentName binPath= $BinPath start= auto displayname= "Pulse Unified Agent" 2>&1
+$scOutput = sc.exe create $AgentName binPath= "$BinPath" start= auto displayname= "Pulse Unified Agent" 2>&1
if ($LASTEXITCODE -ne 0) {
Show-Error "Failed to create service '$AgentName'.`nsc.exe output: $scOutput"
Exit 1