Skip to content
New issue

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

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

Already on GitHub? # to your account

Rust windows installer failed when not run with admin privilege #1223

Closed
buckle2000 opened this issue Aug 6, 2017 · 7 comments
Closed

Rust windows installer failed when not run with admin privilege #1223

buckle2000 opened this issue Aug 6, 2017 · 7 comments

Comments

@buckle2000
Copy link

Installer: rustup-init.exe

How to reproduce this bug

  1. start installer without admin privilege
    Wait for download
    When download of component rustc is completed, the installer says Access denied and halts.

  2. start installer with admin privilege
    the download is now complete, but the installer will request byte range of size 0 from the server, results in error Cannot get multi-part....
    .multirust/ must be deleted to correct and restart installation

@buckle2000
Copy link
Author

It seems somewhat related to #1188

@ferrouswheel
Copy link

As well as deleting .multirust, I had to remove the partial download from .rustup\downloads too.

@buckle2000
Copy link
Author

buckle2000 commented May 11, 2018

@ferrouswheel ironically the downloaded file it is not partial but complete. rustup just need to move it to the appropriate place.

@abelsromero
Copy link

abelsromero commented May 19, 2018

I am on Windows 8.1 and rustup-init required admin rights and installs rust in the admin account. Making it un-avaible for my default non-admin user.
So, is there a way to get a clean install without copying the files manually?

EDIT: I see now that even when I changed to gnu it installed msvc...already reported #1409

@Diggsey
Copy link
Contributor

Diggsey commented May 27, 2018

Do you have CARGO_HOME set to something non-default?

Rustup does not normally require admin privileges to install. Does the error message give any more details than just "access denied"? Do you use any additional security software or have any unusual restrictions?

@abelsromero
Copy link

abelsromero commented Jun 2, 2018

I just downloaded last version (1.26.1) and could fix this by un-checking the Run this as administrator option in the rust-init properties. By default Windows marks this as admin's right required.
Screenshot in Spanish but I assume the position of the option is the same in other languages.

image

Clarification: after this, rustup, rustc ... installed in my non-admin user correctly and is working fine. No need to define CARGO_HOME or do anything else.

@rbtcollins
Copy link
Contributor

Zero idea what was going on here, but the download cannot carry the admin-privileges bit, so it must have been something local / windows 8 specific. Please do reopen if this is still happening.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants