remove all software

This commit is contained in:
Julian Freeman
2026-03-30 20:51:01 -04:00
parent f89ff7173b
commit a699df0b1a
6 changed files with 9 additions and 224 deletions

View File

@@ -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> {