mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-07-06 15:25:09 +03:00
fix(update): msi, norestart (#15440)
* fix(update): msi, norestart Signed-off-by: fufesou <linlong1266@gmail.com> * fix(update): escape path Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -3647,10 +3647,9 @@ pub fn update_to(file: &str) -> ResultType<()> {
|
|||||||
// `1` and `3` must be done in custom actions.
|
// `1` and `3` must be done in custom actions.
|
||||||
// We need also to handle the command line parsing to find the tray processes.
|
// We need also to handle the command line parsing to find the tray processes.
|
||||||
pub fn update_me_msi(msi: &str, quiet: bool) -> ResultType<()> {
|
pub fn update_me_msi(msi: &str, quiet: bool) -> ResultType<()> {
|
||||||
let cmds = format!(
|
let quiet_args = if quiet { " /qn LAUNCH_TRAY_APP=N" } else { "" };
|
||||||
"chcp 65001 && msiexec /i {msi} {}",
|
let cmds =
|
||||||
if quiet { "/qn LAUNCH_TRAY_APP=N" } else { "" }
|
format!("chcp 65001 && msiexec /i \"{msi}\"{quiet_args} REBOOT=ReallySuppress /norestart");
|
||||||
);
|
|
||||||
run_cmds(cmds, false, "update-msi")?;
|
run_cmds(cmds, false, "update-msi")?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user