support del reg

This commit is contained in:
Julian Freeman
2026-04-04 15:54:40 -04:00
parent dac6f6cd62
commit c230847cc0
2 changed files with 17 additions and 7 deletions

View File

@@ -230,10 +230,13 @@ async fn execute_post_install(handle: &AppHandle, log_id: &str, steps: Vec<PostI
"ExpandString" => {
key.set_value(&name, &val.data.as_str().unwrap_or_default())
},
"Delete" => {
key.delete_value(&name)
},
_ => Err(std::io::Error::new(std::io::ErrorKind::Other, "Unsupported type")),
};
if let Err(e) = res {
emit_log(handle, log_id, "Registry Error", &format!("Failed to set {}: {}", name, e), "error");
emit_log(handle, log_id, "Registry Error", &format!("Failed to apply {}: {}", name, e), "error");
}
}
},