fix: msi, prevent black window (#13665)

For msi version, the black window is shown when creating desktop
shortcut for connection.

The exe version does not have this issue.

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou
2025-11-28 17:25:43 +08:00
committed by GitHub
parent 5b21441898
commit 9cfa551163

View File

@@ -1882,6 +1882,7 @@ oLink.Save
.to_owned();
std::process::Command::new("cscript")
.arg(&shortcut)
.creation_flags(CREATE_NO_WINDOW)
.output()?;
allow_err!(std::fs::remove_file(shortcut));
Ok(())