Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DisplayVersion for rustup to registry on Windows. #3047

Merged
merged 1 commit into from
Aug 27, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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