-
-
Save ferventcoder/78fa6b6f4d6e2b12c89680cbc0daec78 to your computer and use it in GitHub Desktop.
| setx ChocolateyInstall c:\programdata\chocoportable | |
| @powershell -NoProfile -ExecutionPolicy Bypass -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH="%PATH%;%ALLUSERSPROFILE%\chocoportable\bin" | |
| choco install puppet-agent.portable | |
| choco install ruby.portable |
For a quick non-admin installation I actually prefer this one-liner:
$env:chocolateyUseWindowsCompression='true' ; $env:ChocolateyInstall="$home\choco" ; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex ; $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") ; choco --version
This code is confusing. Is it for installing Chocolatey itself, or is it for installing packages? If both, then why? Does one need to re-install Chocolatey on non-admin systems every time one wants to install a package? Or do most users only every run Chocolatey once, to install their favorite packages, and then never touch it again?
Also, the comment line "PowerShell 3+?" is confusing. Is it so common to still use PowerShell 2 (even though v.6 is current) that 3+ is commented out? Is there any advantage of using the 3+ command on modern systems? Why is it commented out?
Note: the official Chocolatey install documentation links to this gist.
$env:chocolateyUseWindowsCompression='true' ; $env:ChocolateyInstall="$home\choco" ; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex ; $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") ; choco --version
This worked for me.
Thabk you very mcuh @pbb72
$env:chocolateyUseWindowsCompression='true' ; $env:ChocolateyInstall="$home\choco" ; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex ; $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") ; choco --version
Thanks Bro.
check status for package (choco search: https://github.com/MrDKOz/HandyScripts/blob/12295ca13bf180612c2fb61c0710aaf8143eacfe/app-installer.ps1)
$env:chocolateyUseWindowsCompression='true' ; $env:ChocolateyInstall="$home\choco" ; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex ; $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") ; choco --version
Finnaly, my brain doesn't have to hurt just to install chocolatey. thanks @P4z!
For a quick non-admin installation I actually prefer this one-liner:
$env:chocolateyUseWindowsCompression='true' ; $env:ChocolateyInstall="$home\choco" ; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex ; $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") ; choco --version
Thanks man. Solved my issue with this
Working on adding visualstudiocode.portable