Choco Non-Administrative install

From wikieduonline
Jump to navigation Jump to search
 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 -Scope Process -Force;
>> # All install options - offline, proxy, etc at
>> #
>> iex ((New-Object System.Net.WebClient).DownloadString(''))
Forcing web requests to allow TLS v1.2 (Required for requests to
Getting latest version of the Chocolatey package for download.
Not using proxy.
Getting Chocolatey from
Downloading to C:\Users\USER\AppData\Local\Temp\chocolatey\chocoInstall\
Not using proxy.
Extracting C:\Users\USER\AppData\Local\Temp\chocolatey\chocoInstall\ to C:\Users\USER\AppData\Local\Temp\chocolatey\chocoInstall
Installing Chocolatey on the local machine
WARNING: Installation folder is not the default. Not changing permissions. Please ensure your installation is secure.
We are setting up the Chocolatey package repository.
The packages themselves go to 'C:\ProgramData\chocoportable\lib'
  (i.e. C:\ProgramData\chocoportable\lib\yourPackageName).
A shim file for the command line goes to 'C:\ProgramData\chocoportable\bin'
  and points to an executable in 'C:\ProgramData\chocoportable\lib\yourPackageName'.

Creating Chocolatey folders if they do not already exist.

chocolatey.nupkg file not installed in lib.
 Attempting to locate it from bootstrapper.
WARNING: Setting ChocolateyInstall Path on USER PATH and not SYSTEM Path.
  This is due to either non-administrator install OR the process you are running is not being run as an Administrator.
PATH environment variable does not have C:\ProgramData\chocoportable\bin in it. Adding...
WARNING: Not setting tab completion: Profile file does not exist at 'C:\Users\USER\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'.
WARNING: Unable to run Chocolatey at this time.  It is likely that .Net Framework installation requires a system reboot
Chocolatey (choco.exe) is now ready.
You can call choco from anywhere, command line or powershell by typing choco.
Run choco /? for a list of functions.
You may need to shut down and restart powershell and/or consoles
 first prior to using choco.
Ensuring Chocolatey commands are on the path
Ensuring chocolatey.nupkg is in the lib folder

Start a new shell and run:

Chocolatey v2.2.2
Please run 'choco -?' or 'choco <command> -?' for help menu.


See also[edit]