remove all software
This commit is contained in:
@@ -104,8 +104,8 @@ pub fn ensure_winget_dependencies(handle: &AppHandle) -> Result<(), String> {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn list_all_software(handle: &AppHandle) -> Vec<Software> {
|
||||
let log_id = format!("list-all-{}", chrono::Local::now().timestamp_millis());
|
||||
pub fn list_installed_software(handle: &AppHandle) -> Vec<Software> {
|
||||
let log_id = format!("list-installed-{}", chrono::Local::now().timestamp_millis());
|
||||
let script = r#"
|
||||
$OutputEncoding = [Console]::OutputEncoding = [System.Text.Encoding]::UTF8
|
||||
$ErrorActionPreference = 'SilentlyContinue'
|
||||
@@ -125,7 +125,7 @@ pub fn list_all_software(handle: &AppHandle) -> Vec<Software> {
|
||||
}
|
||||
"#;
|
||||
|
||||
execute_powershell(handle, &log_id, "Fetch All Software", script)
|
||||
execute_powershell(handle, &log_id, "Fetch Installed Software", script)
|
||||
}
|
||||
|
||||
pub fn list_updates(handle: &AppHandle) -> Vec<Software> {
|
||||
|
||||
Reference in New Issue
Block a user