Skip to content

Commit 79355d5

Browse files
committed
fix: also hide patcher window in patch installer
1 parent e6d2ff8 commit 79355d5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/XIVLauncher.Common/Game/Patch/PatchInstaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ public void StartIfNeeded(bool external = true)
5757
if (!EnvironmentSettings.IsNoRunas && Environment.OSVersion.Version.Major >= 6)
5858
startInfo.Verb = "runas";
5959

60+
if (!Debugger.IsAttached)
61+
{
62+
startInfo.CreateNoWindow = true;
63+
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
64+
}
65+
6066
startInfo.Arguments = $"rpc {rpcName}";
6167

6268
State = InstallerState.NotReady;

0 commit comments

Comments
 (0)