From e3b51122aed1338fb70cff492762e5cdc0188777 Mon Sep 17 00:00:00 2001 From: mika kuns Date: Fri, 24 Apr 2026 19:40:38 +0200 Subject: [PATCH] fix(service): explain 1073 (service exists) on install-service --- src/ClaudeMailbox/Cli/ServiceCommands.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ClaudeMailbox/Cli/ServiceCommands.cs b/src/ClaudeMailbox/Cli/ServiceCommands.cs index b6856cc..8a70bdf 100644 --- a/src/ClaudeMailbox/Cli/ServiceCommands.cs +++ b/src/ClaudeMailbox/Cli/ServiceCommands.cs @@ -92,7 +92,10 @@ public static class ServiceCommands "obj=", "NT AUTHORITY\\LocalService"); if (createExit != 0) { - Console.Error.WriteLine($"sc create failed (exit {createExit})."); + if (createExit == 1073) + Console.Error.WriteLine($"Service '{ServiceName}' already exists. Run 'claude-mailbox uninstall-service' first."); + else + Console.Error.WriteLine($"sc create failed (exit {createExit})."); return createExit; }