Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to install Rust using power shell?

I want to install rust automatically via command line on Windows. It doesn’t matter if it’s power shell or not but I think power shell is the easiest without having to install other stuff manually.

I found https://www.powershellgallery.com/packages/AppVeyorBYOC/1.0.170/Content/scripts%5CWindows%5Cinstall_rust.ps1 but at

 Add-SessionPath "$env:USERPROFILE\.cargo\bin"

it says that Add-SessionPath is a cmdlet that does not exist.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I had the same error. I changed that line to this and the script worked with Powershell 7.

$env:Path = "$env:USERPROFILE\.cargo\bin"
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading