From 9fd5d01f5b783899f1f941ba03f2c3b527adea1a Mon Sep 17 00:00:00 2001 From: KodrAus Date: Fri, 12 Jun 2026 13:15:12 +1000 Subject: [PATCH] use executing binary path for install command --- src/SeqCli/Cli/Commands/Forwarder/InstallCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SeqCli/Cli/Commands/Forwarder/InstallCommand.cs b/src/SeqCli/Cli/Commands/Forwarder/InstallCommand.cs index 1aca84b1..58ccd2d0 100644 --- a/src/SeqCli/Cli/Commands/Forwarder/InstallCommand.cs +++ b/src/SeqCli/Cli/Commands/Forwarder/InstallCommand.cs @@ -98,7 +98,7 @@ void Install() if (netshResult != 0) Console.WriteLine($"Could not add URL reservation for {listenUri}: `netsh` returned {netshResult}; ignoring"); - var exePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, Program.WindowsBinaryName); + var exePath = Environment.ProcessPath; var forwarderRunCmdline = $"\"{exePath}\" forwarder run --pre --storage=\"{_storagePath.StorageRootPath}\""; var binPath = forwarderRunCmdline.Replace("\"", "\\\"");