-
Notifications
You must be signed in to change notification settings - Fork 892
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
rustup self update doesn't update DisplayVersion #3739
Comments
@ave9858 Thanks for filing this issue! Unfortunately I don't currently use Windows and I wonder how exactly winget expect https://github.com/rust-lang/rustup/pull/3047/files only handles the addition of |
Also cc @ChrisDenton as our resident Windows expert? |
Looking at rustup/src/cli/self_update/windows.rs Line 503 in 0c501d5
DisplayVersion would be enough but I guess the only tricky thing would be to make sure it doesn't overwrite another installation of rustup. Not that rustup particularly supports having two concurrent installs.
|
@ave9858 A new beta release is available, would you mind trying it out? |
Still seeing the old version number in control panel after updating to the beta, and I confirmed the old number is shown in the registry also. I first installed Rustup 1.27.0 (via update from 1.26.0 and normal install from https://www.rust-lang.org/tools/install) and then enabled beta via |
Looks like a downgrade triggered by removing the |
Then it's working as expected (the code changes wasn't there in v1.27.0 so those particular upgrades won't work, but all the upgrades performed on v1.27.1+ should work). Thanks! |
Problem
When updating rustup from a prior release using
rustup update
, the DisplayVersion in the registry isn't updated from the old release version. This will result in tools like winget thinking rustup is outdated, and might confuse users.Steps
rustup update
, and check that rustup is updated to the latest versionHKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Rustup
in the registry to see the outdated version numberPossible Solution(s)
Maybe
do_add_to_programs
isn't called for updates? I haven't checked the code yet.Notes
Related to #3047 and #3055
Rustup version
Installed toolchains
The text was updated successfully, but these errors were encountered: