Open
Description
Problem
On Windows, if you run rustup-init.exe
by double clicking the executable, it wouldn't detect custom paths in CARGO_HOME
and RUSTUP_HOME
and install to the default path.
Steps
- Set the variables
CARGO_HOME
andRUSTUP_HOME
via command line (setx ... /m
) or Windows GUI - Double click the
rustup-init.exe
executable - Answer
Y
to the initial prompt regarding having to install additional dependencies - On the next screen, observe the incorrect paths being presented
- Proceed with the installation. Choose default installation
- Observe the absence of the installed app in the paths described by
CARGO_HOME
andRUSTUP_HOME
- Observe the app being located in the default location (
%USERPROFILE%\.cargo\
and%USERPROFILE%\.rustup\
respectively)
Workaround
- Open a separate
cmd
instance - Navigate to the
rustup-init.exe
file and run it - Observe correct paths being displayed
- Observe the app being installed into
CARGO_HOME
andRUSTUP_HOME
properly
Notes
Windows version: Version 10.0.19042 Build 19042