remove useless code in is_installed windows

This commit is contained in:
rustdesk 2024-04-09 16:33:03 +08:00
parent 44de6a5549
commit cf8386aa50

View File

@ -1420,24 +1420,6 @@ pub fn add_recent_document(path: &str) {
pub fn is_installed() -> bool {
let (_, _, _, exe) = get_install_info();
std::fs::metadata(exe).is_ok()
/*
use windows_service::{
service::ServiceAccess,
service_manager::{ServiceManager, ServiceManagerAccess},
};
if !std::fs::metadata(exe).is_ok() {
return false;
}
let manager_access = ServiceManagerAccess::CONNECT;
if let Ok(service_manager) = ServiceManager::local_computer(None::<&str>, manager_access) {
if let Ok(_) =
service_manager.open_service(crate::get_app_name(), ServiceAccess::QUERY_CONFIG)
{
return true;
}
}
return false;
*/
}
pub fn get_reg(name: &str) -> String {