Execute the .bat file directly on install to avoid the replacement of cmd (#6817)
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
f4ef1455c4
commit
cdc31b7fc7
@ -1221,8 +1221,9 @@ fn run_cmds(cmds: String, show: bool, tip: &str) -> ResultType<()> {
|
||||
let tmp = write_cmds(cmds, "bat", tip)?;
|
||||
let tmp2 = get_undone_file(&tmp)?;
|
||||
let tmp_fn = tmp.to_str().unwrap_or("");
|
||||
let res = runas::Command::new("cmd")
|
||||
.args(&["/C", &tmp_fn])
|
||||
// https://github.com/rustdesk/rustdesk/issues/6786#issuecomment-1879655410
|
||||
// Execute the .bat file directly to avoid the replacement of cmd
|
||||
let res = runas::Command::new(&tmp_fn)
|
||||
.show(show)
|
||||
.force_prompt(true)
|
||||
.status();
|
||||
|
Loading…
x
Reference in New Issue
Block a user