Refine agent config naming and IDs

This commit is contained in:
2025-10-16 20:30:24 -06:00
parent 35f9a95cc5
commit 09a0b3d50e
6 changed files with 188 additions and 75 deletions

View File

@@ -24,7 +24,7 @@ try {
if (-not (Test-Path $agentPy)) { throw "Agent script not found: $agentPy" }
$exe = if ($Console) { $py } else { if (Test-Path $pyw) { $pyw } else { $py } }
$args = @("`"$agentPy`"","--system-service","--config","svc")
$args = @("`"$agentPy`"","--system-service","--config","SYSTEM")
# Launch and keep the task in Running state by waiting on the child
$p = Start-Process -FilePath $exe -ArgumentList $args -WindowStyle Hidden -PassThru -WorkingDirectory $scriptDir `