[Guide] how to install and update ADB System wide with chocolaty

malek_anas_97

Senior Member
Nov 24, 2013
113
76
0
This guide shows the best way imo to install adb and update it down the line (without installing the whole sdk or doing everything manually)
First of all, What is Chocolatey?
"Chocolatey is kind of like apt-get, but for Windows (with Windows comes limitations). It is a machine level package manager that is built on top of nuget command line and the nuget infrastructure.
"Okay, machine package manager, that's nice. What does that mean though?" It means you can simply install software with a few keystrokes and go get coffee while your co-workers are downloading and running an install manually (and I do mean something like an MSI)."
chocolaty's website https://chocolatey.org/

Requirements :
Windows 7+ / Windows Server 2003+
PowerShell v2+
.NET Framework 4+ (the installation will attempt to install .NET 4.0 if you do not have it installed)

To start we first need to install chocolaty (original steps can be found on chocolaty's website https://chocolatey.org/install)
1- Run Windows powershell as administrator
2- With PowerShell, there is an additional step. You must ensure Get-ExecutionPolicy is not Restricted. We suggest using Bypass to bypass the policy to get things installed or AllSigned for quite a bit more security.
Run Get-ExecutionPolicy. If it returns Restricted, then run Set-ExecutionPolicy AllSigned or Set-ExecutionPolicy Bypass -Scope Process.
3- Now run the following command
Code:
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
4- To update chocolaty use the command
Code:
choco upgrade chocolatey
5- Now we can install ADB By using the following command :
Code:
choco install adb
6- if you wanted to update adb simply type
Code:
choco upgrade adb
Congratulations :D
now you should have a minimal system wide and easily updatable adb installation
happy flashing :highfive: