Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Installing Software as a Non-Administrator Using Chocolatey
:: Pick one of these two files (cmd or ps1)
:: Set directory for installation - Chocolatey does not lock
:: down the directory if not the default
SET INSTALLDIR=c:\ProgramData\chocoportable
setx ChocolateyInstall %INSTALLDIR%
:: All install options - offline, proxy, etc at
:: https://chocolatey.org/install
@powershell -NoProfile -ExecutionPolicy Bypass -Command "(iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1" && SET PATH="%PATH%;%INSTALLDIR%\bin"
CALL choco install puppet-agent.portable -y
CALL choco install ruby.portable -y
CALL choco install git.commandline -y
:: pick an editor
::CALL choco install visualstudiocode.portable -y :: Not available yet
CALL choco install notepadplusplus.commandline -y
::CALL choco install nano -y
::CALL choco install vim-tux.portable
:: What else can I install without admin rights?
:: https://chocolatey.org/packages?q=id%3Aportable
# Pick one of these two files (cmd or ps1)
# Set directory for installation - Chocolatey does not lock
# down the directory if not the default
$InstallDir='C:\ProgramData\chocoportable'
$env:ChocolateyInstall="$InstallDir"
# If your PowerShell Execution policy is restrictive, you may
# not be able to get around that. Try setting your session to
# Bypass.
Set-ExecutionPolicy Bypass
# All install options - offline, proxy, etc at
# https://chocolatey.org/install
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# PowerShell 3+?
#iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
choco install puppet-agent.portable -y
choco install ruby.portable -y
choco install git.commandline -y
# pick an editor
#choco install visualstudiocode.portable -y # not yet available
choco install notepadplusplus.commandline -y
#choco install nano -y
#choco install vim-tux.portable
# What else can I install without admin rights?
# https://chocolatey.org/packages?q=id%3Aportable
@ferventcoder

This comment has been minimized.

Show comment
Hide comment
@ferventcoder

ferventcoder Jan 16, 2017

Working on adding visualstudiocode.portable

Owner

ferventcoder commented Jan 16, 2017

Working on adding visualstudiocode.portable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment