diff --git a/v2rayN/ServiceLib/Common/ProcUtils.cs b/v2rayN/ServiceLib/Common/ProcUtils.cs index 3f5c31af..3c4ce2a5 100644 --- a/v2rayN/ServiceLib/Common/ProcUtils.cs +++ b/v2rayN/ServiceLib/Common/ProcUtils.cs @@ -33,7 +33,8 @@ public static class ProcUtils UseShellExecute = true, FileName = fileName, Arguments = arguments, - WorkingDirectory = dir ?? string.Empty + WorkingDirectory = dir ?? string.Empty, + WindowStyle = ProcessWindowStyle.Hidden } }; _ = proc.Start(); @@ -57,6 +58,7 @@ public static class ProcUtils WorkingDirectory = Utils.StartupPath(), FileName = Utils.GetExePath().AppendQuotes(), Verb = blAdmin ? "runas" : null, + WindowStyle = ProcessWindowStyle.Hidden }; return Process.Start(startInfo) != null; }