diff --git a/Main.Designer.cs b/Main.Designer.cs index 35c0f8d..2ab1f0c 100644 --- a/Main.Designer.cs +++ b/Main.Designer.cs @@ -443,7 +443,6 @@ Icon = (Icon)resources.GetObject("$this.Icon"); Name = "Main"; Text = "Install - EI-Med Viewer V1"; - TopMost = true; Load += Main_Load; groupBox1.ResumeLayout(false); groupBox1.PerformLayout(); diff --git a/Main.cs b/Main.cs index 7ef0aef..9b19287 100644 --- a/Main.cs +++ b/Main.cs @@ -769,9 +769,9 @@ namespace Start WinformLog($"Start creating a service {serviceName}...", Color.Green); - var createTestStr = $"sc create {serviceName} binPath= \"{apiBinPath} --urls=\"http://*:{apiPort}\" --env Test_510K\" DisplayName= \"{serviceDisplayName}\" start= auto"; + var createTestStr = $"sc create {serviceName} binPath= \"{apiBinPath} --urls=http://*:{apiPort} --env Test_510K\" DisplayName= \"{serviceDisplayName}\" start= auto"; - var createStr = $@"sc create {serviceName} binPath= ""{apiBinPath} --urls=""http://*:{apiPort}"" --env Test_510K"" DisplayName= ""{serviceDisplayName}"" start= auto"; + var createStr = $@"sc create {serviceName} binPath= ""{apiBinPath} --urls=http://*:{apiPort} --env Test_510K"" DisplayName= ""{serviceDisplayName}"" start= auto"; // 执行 sc create 命令来创建服务 await ProcessStandardInputAsync(process, createStr); @@ -1000,7 +1000,7 @@ namespace Start testNetcoreRuntime(); - this.TopMost = true; + //this.TopMost = true; this.Activate();