diff --git a/Cargo.lock b/Cargo.lock index 7de4477880ce..41064be33e9a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3301,7 +3301,7 @@ dependencies = [ "anyhow", "apple-sys", "cfg-if 1.0.0", - "core-foundation 0.9.3", + "core-foundation", "shadow-rs", "windows 0.48.0", "winres", diff --git a/src/platform/windows.rs b/src/platform/windows.rs index f65d505320dc..dbe8acd5b6f6 100644 --- a/src/platform/windows.rs +++ b/src/platform/windows.rs @@ -1309,11 +1309,13 @@ 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}, }; - let (_, _, _, exe) = get_install_info(); if !std::fs::metadata(exe).is_ok() { return false; } @@ -1326,6 +1328,7 @@ pub fn is_installed() -> bool { } } return false; + */ } pub fn get_reg(name: &str) -> String { diff --git a/src/ui_interface.rs b/src/ui_interface.rs index 7ea37bb5ee92..c104d0402b5c 100644 --- a/src/ui_interface.rs +++ b/src/ui_interface.rs @@ -283,6 +283,7 @@ pub fn set_option(key: String, value: String) { return; } } + /* #[cfg(any(target_os = "windows"))] { if crate::platform::is_installed() { @@ -294,6 +295,7 @@ pub fn set_option(key: String, value: String) { return; } } + */ } if value.is_empty() { options.remove(&key);