We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bc5d2c commit 242c3d7Copy full SHA for 242c3d7
src/cli/self_update/windows.rs
@@ -523,10 +523,14 @@ pub(crate) fn do_add_to_programs() -> Result<()> {
523
vtype: RegType::REG_SZ,
524
};
525
526
+ let current_version: &str = env!("CARGO_PKG_VERSION");
527
+
528
key.set_raw_value("UninstallString", ®_value)
529
.context("Failed to set uninstall string")?;
530
key.set_value("DisplayName", &"Rustup: the Rust toolchain installer")
531
.context("Failed to set display name")?;
532
+ key.set_value("DisplayVersion", ¤t_version)
533
+ .context("Failed to set display version")?;
534
535
Ok(())
536
}
0 commit comments