From bd298ed4ff5839dca8ad03b5cae938038fad6f2e Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Mon, 4 Nov 2024 17:30:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Main.Designer.cs | 1 - Main.cs | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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();