fix(installer): move service start out of RegisterServiceStep

This commit is contained in:
mika kuns
2026-04-17 14:26:34 +02:00
parent ad7c9facaf
commit 51a1bbe6b8
2 changed files with 3 additions and 10 deletions

View File

@@ -67,15 +67,6 @@ public sealed class RegisterServiceStep : IInstallStep
if (failExit != 0)
progress.Report($"Warning: failed to set restart policy (exit {failExit})");
// Start service if auto-start
if (ctx.AutoStart)
{
progress.Report("Starting service...");
var (startExit, _) = await RunSc($"start {ServiceName}", ctx, progress, ct);
if (startExit != 0)
progress.Report("Warning: service created but failed to start. You may need to start it manually.");
}
return StepResult.Ok();
}