Closed
Description
Suggestion
Coming from https://github.com/rust-lang/rustup/pull/3896/files#r1666173552. As what we discussed in this review, we should set string values with REG_EXPAND_SZ
type when modifying PATH
. So, we need a way to set the string type when calling set_string()
and set_hstring()
.
Appendix: We also need a way to verify whether String
or HSTRING
has REG_SZ
or REG_EXPAND_SZ
. See https://github.com/rust-lang/rustup/blob/044083c9cc58b0ae23eeb1a390ca17ddc6f859d2/src/cli/self_update/windows.rs#L950.