Merge pull request #2225 from 21pages/portable-service

portable-service: enable quick support by rename as xxxqs.exe
This commit is contained in:
RustDesk
2022-11-19 13:53:21 +08:00
committed by GitHub
9 changed files with 49 additions and 46 deletions

View File

@@ -64,6 +64,7 @@ fn main() {
i += 1;
}
let click_setup = args.is_empty() && arg_exe.to_lowercase().ends_with("install.exe");
let quick_support = args.is_empty() && arg_exe.to_lowercase().ends_with("qs.exe");
let reader = BinaryReader::default();
if let Some(exe) = setup(
@@ -72,7 +73,9 @@ fn main() {
click_setup || args.contains(&"--silent-install".to_owned()),
) {
if click_setup {
args = vec!["--install".to_owned()]
args = vec!["--install".to_owned()];
} else if quick_support {
args = vec!["--quick_support".to_owned()];
}
execute(exe, args);
}