Rename the Windows agent binary to ExecuteR-Agent.exe #12

Merged
gsadmin merged 1 commits from dev into main 2026-08-10 14:57:14 +00:00
7 changed files with 18 additions and 17 deletions
+8 -8
View File
@@ -528,14 +528,14 @@ all of them — no extra route is needed.
The one binary supports:
```text
Agent.exe foreground run interactively (console logging)
Agent.exe install create/update the Windows service (idempotent)
Agent.exe start start the service
Agent.exe stop stop the service
Agent.exe initialize install + start
Agent.exe remove stop + remove the service
Agent.exe status machine- and human-readable state
Agent.exe version unified build version
ExecuteR-Agent.exe foreground run interactively (console logging)
ExecuteR-Agent.exe install create/update the Windows service (idempotent)
ExecuteR-Agent.exe start start the service
ExecuteR-Agent.exe stop stop the service
ExecuteR-Agent.exe initialize install + start
ExecuteR-Agent.exe remove stop + remove the service
ExecuteR-Agent.exe status machine- and human-readable state
ExecuteR-Agent.exe version unified build version
```
Launched by the SCM with no argument, it runs as a service (`LocalSystem`,
+3 -2
View File
@@ -56,9 +56,10 @@ foreach ($rid in $Runtimes) {
# Shipping bundles carry no debug symbols.
Get-ChildItem $ridPublishDir -Filter '*.pdb' -Recurse | Remove-Item -Force
# A recognizable binary name on unix; the MSI harvest expects Agent.exe.
# A lowercase binary name on unix; Windows keeps ExecuteR-Agent.exe, which
# the MSI harvest expects and which names the rolling log after itself.
if ($rid -notlike 'win-*') {
Rename-Item (Join-Path $ridPublishDir 'Agent') 'executer-agent'
Rename-Item (Join-Path $ridPublishDir 'ExecuteR-Agent') 'executer-agent'
}
Copy-Item $modulesStage (Join-Path $ridPublishDir 'Modules') -Recurse
+1 -1
View File
@@ -7,7 +7,7 @@
inventory, systemd/launchd, forkpty remote shell). -->
<TargetFrameworks>net10.0-windows;net10.0</TargetFrameworks>
<RootNamespace>Agent</RootNamespace>
<AssemblyName>Agent</AssemblyName>
<AssemblyName>ExecuteR-Agent</AssemblyName>
<Product>ExecuteR Agent</Product>
<AssemblyTitle>ExecuteR Agent</AssemblyTitle>
<RuntimeIdentifiers>win-x64;win-arm64;linux-x64;linux-arm64;osx-x64;osx-arm64</RuntimeIdentifiers>
+1 -1
View File
@@ -191,7 +191,7 @@ public static class AgentCli
{
Console.WriteLine($"{Branding.AgentServiceDisplayName} {BuildVersion.Resolve(typeof(AgentCli).Assembly)}");
Console.WriteLine();
Console.WriteLine("Usage: Agent.exe <command>");
Console.WriteLine("Usage: ExecuteR-Agent.exe <command>");
Console.WriteLine();
Console.WriteLine("Commands:");
Console.WriteLine(" foreground Run interactively with console logging");
+1 -1
View File
@@ -233,7 +233,7 @@ public static class InstallEndpoints
$wc.Dispose()
New-Item -ItemType Directory -Force -Path $dest | Out-Null
Expand-Archive -Path $zip -DestinationPath $dest -Force
$exe = Join-Path $dest 'Agent.exe'
$exe = Join-Path $dest 'ExecuteR-Agent.exe'
# Seed configuration then install + start the service via the agent's own APIs.
New-Item -Path 'HKLM:\SOFTWARE\ExecuteR' -Force | Out-Null
Set-ItemProperty -Path 'HKLM:\SOFTWARE\ExecuteR' -Name 'ServerURL' -Value $server
+3 -3
View File
@@ -90,7 +90,7 @@
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<Component Id="AgentExecutable" Guid="5f0f2d4e-91a4-4e56-8f0a-6f6f0a1c9b21">
<File Id="AgentExe" Source="$(AgentPublishDir)\Agent.exe" KeyPath="yes" />
<File Id="AgentExe" Source="$(AgentPublishDir)\ExecuteR-Agent.exe" KeyPath="yes" />
<ServiceInstall Id="AgentService"
Name="ExecuteRAgent"
@@ -170,7 +170,7 @@
start + recovery policy through the Windows service APIs.
-->
<SetProperty Id="ConfigureServiceExtras"
Value="&quot;[INSTALLFOLDER]Agent.exe&quot; install"
Value="&quot;[INSTALLFOLDER]ExecuteR-Agent.exe&quot; install"
Sequence="execute"
Before="ConfigureServiceExtras" />
<CustomAction Id="ConfigureServiceExtras"
@@ -186,7 +186,7 @@
files are removed.
-->
<SetProperty Id="PurgeCredentials"
Value="&quot;[INSTALLFOLDER]Agent.exe&quot; purge-credentials"
Value="&quot;[INSTALLFOLDER]ExecuteR-Agent.exe&quot; purge-credentials"
Sequence="execute"
Before="PurgeCredentials" />
<CustomAction Id="PurgeCredentials"
@@ -19,7 +19,7 @@ public static class Branding
"ExecuteR endpoint management agent. Maintains a secure connection to the ExecuteR control plane " +
"for inventory, script execution and remote management.";
public const string AgentExecutableName = "Agent.exe";
public const string AgentExecutableName = "ExecuteR-Agent.exe";
/// <summary>Normal machine configuration key below HKLM.</summary>
public const string AgentRegistryKey = @"SOFTWARE\" + ProductKey;