--install-idd with cert
Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
parent
97108e788f
commit
2d456fd1fc
@ -219,15 +219,18 @@ pub fn core_main() -> Option<Vec<String>> {
|
|||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
hbb_common::allow_err!(crate::platform::windows::uninstall_cert());
|
hbb_common::allow_err!(crate::platform::windows::uninstall_cert());
|
||||||
return None;
|
return None;
|
||||||
} else if args[0] == "--install-update-idd" {
|
} else if args[0] == "--install-idd" {
|
||||||
// --install-cert must be called before this.
|
// Install cert if cert file is provided (2rd arg).
|
||||||
|
if args.len() == 2 {
|
||||||
|
#[cfg(windows)]
|
||||||
|
hbb_common::allow_err!(crate::platform::windows::install_cert(&args[1]));
|
||||||
|
}
|
||||||
#[cfg(all(windows, feature = "virtual_display_driver"))]
|
#[cfg(all(windows, feature = "virtual_display_driver"))]
|
||||||
if crate::virtual_display_manager::is_virtual_display_supported() {
|
if crate::virtual_display_manager::is_virtual_display_supported() {
|
||||||
hbb_common::allow_err!(crate::virtual_display_manager::install_update_driver());
|
hbb_common::allow_err!(crate::virtual_display_manager::install_update_driver());
|
||||||
}
|
}
|
||||||
return None;
|
return None;
|
||||||
}
|
} else if args[0] == "--portable-service" {
|
||||||
else if args[0] == "--portable-service" {
|
|
||||||
crate::platform::elevate_or_run_as_system(
|
crate::platform::elevate_or_run_as_system(
|
||||||
click_setup,
|
click_setup,
|
||||||
_is_elevate,
|
_is_elevate,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user