From b791c324e419fe84a9c400879a73805337fe168b Mon Sep 17 00:00:00 2001 From: Dynesshely Date: Sun, 20 Nov 2022 09:12:43 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=BE=20Feat:=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=AE=8C=E6=88=90=E5=90=8E=E8=AF=A2=E9=97=AE?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=90=AF=E5=8A=A8=E7=9A=84=E9=80=BB=E8=BE=91?= =?UTF-8?q?.=20Crequency/KitX#176.=206.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MainForm.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Installer for Windows/KitX Installer for Windows in .NET Framework/MainForm.cs b/Installer for Windows/KitX Installer for Windows in .NET Framework/MainForm.cs index d1e9e3b..4addd7f 100644 --- a/Installer for Windows/KitX Installer for Windows in .NET Framework/MainForm.cs +++ b/Installer for Windows/KitX Installer for Windows in .NET Framework/MainForm.cs @@ -383,8 +383,12 @@ private void InstallProcess() try { - Process.Start("cmd.exe", $"/C cd /d {stfolder} && runas.exe /TrustLevel:0x20000 " + - $"\"{targetPath}\""); + if (MessageBox.Show("Start now? | 现在启动吗?", "KitX", + MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) + { + Process.Start("cmd.exe", $"/C cd /d {stfolder} && runas.exe /TrustLevel:0x20000 " + + $"\"{targetPath}\""); + } //Process.Start("explorer.exe", targetPath);