Install problems Windows 10

When running the rustup-init.exe as ADMINISTRATOR and with the defaults I receive the following output. How can I solve this problem?

info: syncing channel updates for ‘stable-x86_64-pc-windows-msvc’
372.7 KiB / 372.7 KiB (100 %) 159.5 KiB/s in 2s ETA: 0s
info: latest update on 2019-07-04, rust version 1.36.0 (a53f9df32 2019-07-03)
info: downloading component ‘rustc’
info: downloading component ‘rust-std’
info: downloading component ‘cargo’
info: downloading component ‘rust-docs’
info: installing component ‘rustc’
60.5 MiB / 60.5 MiB (100 %) 14.1 MiB/s in 4s ETA: 0s
info: installing component ‘rust-std’
55.3 MiB / 55.3 MiB (100 %) 15.7 MiB/s in 3s ETA: 0s
info: installing component ‘cargo’
info: installing component ‘rust-docs’
11.0 MiB / 11.0 MiB (100 %) 996.8 KiB/s in 7s ETA: 0s
info: rolling back changes
error: could not rename component file from ‘C:\Users\User.rustup\tmp\yc4iw7_fxa8j5gkl_dir\rust-docs\share/doc/rust/html’ to ‘C:\Users\User.rustup\toolchains\stable-x86_64-pc-windows-msvc\share/doc/rust/html’
info: caused by: Access is denied. (os error 5)

Press the Enter key to continue.

Maybe this

or

or

can help you?

Do you use VSCode? I’ve found I sometimes have to close that before updating. Other than that you can try deleting the whole tmp folder and then trying again.

If you want to do some digging you can try to find out what’s got a handle on the file using Sysinternals Handle utility.

Chris,

This was a first install, not an update and I don’t use VSCode. It is rather annoying that what should be a straightforward process fails. I expect an install to work without glitches, not spending time at debugging.

Thanks for the advice.

Filiep

For sure, it should just work. This is definitely a bug with rustup.

It’s usually cause by something else holding a lock on the file which is preventing it being renamed. Often it’s Windows Defender or another anti-virus program. I think Windows Defender does provide a way to exclude directories from being scanned, which might help.

I tried it again the next day and it installed without a glitch. Go figure.

I tried to install the Rust extension in Visual Studio 2017 but got the following error. I have been looking for a solution on the Internet but have not been able to find one. Some folks stated that the current RustLanguageExtension.vsix is not compatible with Visual Studio 2017. I used Visual Studio Code instead and that works, just annoying to have to use two different development environments.

Regards,

Filiep

7/17/2019 08:10:26 - Microsoft VSIX Installer
7/17/2019 08:10:26 - -------------------------------------------
7/17/2019 08:10:26 - vsixinstaller.exe version:
7/17/2019 08:10:26 - 15.0.26228.9 built by: D15RTWSVC
7/17/2019 08:10:26 - -------------------------------------------
7/17/2019 08:10:26 - Command line parameters:
7/17/2019 08:10:26 - D:\ProgramFiles\Programming\VS2017\Common7\IDE\VSIXInstaller.exe,D:\Downloads\RustLanguageExtension.vsix
7/17/2019 08:10:26 - -------------------------------------------
7/17/2019 08:10:26 - Microsoft VSIX Installer
7/17/2019 08:10:26 - -------------------------------------------
7/17/2019 08:10:26 - Failed to initialize settings for Isolated Shell D:\ProgramFiles\Programming\SQLServer\Sharedx86\120\Tools\Binn\ManagementStudio\ssms.exe: Unable to find an entry point named ‘?’ in DLL ‘PkgdefMgmt.dll’.
7/17/2019 08:10:27 - Initializing Install…
7/17/2019 08:10:27 - Extension Details…
7/17/2019 08:10:27 - Identifier : RustLanguageExtension.5c010d5e-68dd-4c38-a7ca-c2ac3a8103fd
7/17/2019 08:10:27 - Name : Rust
7/17/2019 08:10:27 - Author : Daniel Griffen
7/17/2019 08:10:27 - Version : 0.4.6.41620
7/17/2019 08:10:27 - Description : Rust Extension for VS2017 with Language Server Support
7/17/2019 08:10:27 - Locale : en-US
7/17/2019 08:10:27 - MoreInfoURL :
7/17/2019 08:10:27 - InstalledByMSI : False
7/17/2019 08:10:27 - SupportedFrameworkVersionRange : [4.5,)
7/17/2019 08:10:27 -
7/17/2019 08:10:27 - SignatureState : Unsigned
7/17/2019 08:10:27 - Supported Products :
7/17/2019 08:10:27 - Microsoft.VisualStudio.Community
7/17/2019 08:10:27 - Version : [15.0.27825.0,17.0)
7/17/2019 08:10:27 -
7/17/2019 08:10:27 - References :
7/17/2019 08:10:27 - Prerequisites :
7/17/2019 08:10:27 - -------------------------------------------------------
7/17/2019 08:10:27 - Identifier : Microsoft.VisualStudio.Component.CoreEditor
7/17/2019 08:10:27 - Name : Visual Studio core editor
7/17/2019 08:10:27 - Version : [15.0,17.0)
7/17/2019 08:10:27 -
7/17/2019 08:10:27 - Signature Details…
7/17/2019 08:10:27 - Extension is not signed.
7/17/2019 08:10:27 -
7/17/2019 08:10:27 - Searching for applicable products…
7/17/2019 08:10:27 - Found installed product - Global Location
7/17/2019 08:10:27 - Found installed product - Visual Studio Enterprise 2017
7/17/2019 08:10:27 - VSIXInstaller.NoApplicableSKUsException: This extension is not installable on any currently installed products.
at VSIXInstaller.App.GetInstallableData(String vsixPath, Boolean isRepairSupported, IEnumerable1& skuData) at VSIXInstaller.App.Initialize(Boolean isRepairSupported) at VSIXInstaller.App.Initialize() at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()