volta icon indicating copy to clipboard operation
volta copied to clipboard

Windows installer without admin privileges

Open zmkpr0 opened this issue 2 years ago • 3 comments

Does the windows installer need admin privileges? From the docs, I thought that enabling the developer mode should be enough to run volta. Is there a way to install volta when I don't have admin rights?

zmkpr0 avatar Sep 07 '23 12:09 zmkpr0

I documented some temporary steps to install Volta without admin rights in Windows: https://stackoverflow.com/questions/78510512/use-multiple-node-versions-in-windows-simultaneously/78967945#78967945

But I wish there is an official way to do this.

sken130 avatar Sep 10 '24 07:09 sken130

I documented some temporary steps to install Volta without admin rights in Windows: https://stackoverflow.com/questions/78510512/use-multiple-node-versions-in-windows-simultaneously/78967945#78967945

But I wish there is an official way to do this.

Thank you very much,this is a very effective way to install the software on company computers that do not have administrator privilegesthis!

T97-coffee avatar Feb 11 '25 03:02 T97-coffee

This is an optimized PowerShell one-liner based on @sken130 answer: $targetDir = "$env:USERPROFILE\volta"; Start-Process "msiexec" -ArgumentList "/a", "https://github.com/volta-cli/volta/releases/download/v2.0.2/volta-2.0.2-windows-x86_64.msi", "/qb", "TARGETDIR=$targetDir" -Wait; $newPath="${targetDir}\PFiles\Volta"; $envPath=[Environment]::GetEnvironmentVariable("Path","User"); $paths=$envPath -split ";" | Where-Object { $_.Trim() -ne "" }; if(-not ($paths -contains $newPath)){ [Environment]::SetEnvironmentVariable("Path",($paths+$newPath -join ";"),"User") }

els-krasils avatar Aug 06 '25 14:08 els-krasils