Skip to content

Commit

Permalink
Merge pull request #3047 from jedieaston/display-that-version-yo
Browse files Browse the repository at this point in the history
Add DisplayVersion for rustup to registry on Windows.
  • Loading branch information
kinnison authored Aug 27, 2022
2 parents 9f40467 + 242c3d7 commit b109e60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cli/self_update/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -523,10 +523,14 @@ pub(crate) fn do_add_to_programs() -> Result<()> {
vtype: RegType::REG_SZ,
};

let current_version: &str = env!("CARGO_PKG_VERSION");

key.set_raw_value("UninstallString", &reg_value)
.context("Failed to set uninstall string")?;
key.set_value("DisplayName", &"Rustup: the Rust toolchain installer")
.context("Failed to set display name")?;
key.set_value("DisplayVersion", &current_version)
.context("Failed to set display version")?;

Ok(())
}
Expand Down

0 comments on commit b109e60

Please sign in to comment.