diff --git a/NewLife.Agent/CommandHandler/Install.cs b/NewLife.Agent/CommandHandler/Install.cs index 51caf98..f943be2 100644 --- a/NewLife.Agent/CommandHandler/Install.cs +++ b/NewLife.Agent/CommandHandler/Install.cs @@ -59,7 +59,7 @@ public override void Process(String[] args) if (list.Count > 0) arg += " " + list.Join(" "); } - Service.Host.Install(Service.ServiceName, Service.DisplayName, exe, arg, Description); + Service.Host.Install(Service.ServiceName, Service.DisplayName, exe, arg, Service.Description); // 稍微等一下,以便后续状态刷新 Thread.Sleep(500);