install 7zip with choco without admin permissions

15 Nov 2022

Install choco, from a powershell:

$ notepad choco-non-admin.ps1

Then paste the following instructions:

# Set directory for installation - Chocolatey does not lock
# down the directory if not the default

# 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(''))

Execute the resulting script and install the portable 7zip version:

$ ./choco-non-admin.ps1
$ choco install 7zip.portable

Open C:\ProgramData\chocoportable\lib\7zip.portable\tools\7zFM to compress / uncompress stuff.

Happy hacking!