How to Install Software via CMD
Last Updated :
05 Apr, 2025
Installing software on your computer usually means clicking through a setup wizard, but did you know you can do it faster with just a few typed commands? Using the Command Prompt (CMD) in Windows, you can install programs without all the mouse clicks, making it a handy trick for quick setups or managing multiple systems.
In this blog, we’ll walk you through the step-by-step process of installing software using CMD. From using built-in tools like Windows Package Manager (winget) to executing installation commands for standalone executables, you’ll discover how to harness the power of the command line to install software quickly and efficiently.
How to Install Programs Using CMD in Windows
Here, we will discuss 3 different methods to set up applications using the Command Prompt on Windows 10 and 11, which include Winget, Chocolatey, or direct installer executables.
1. Install Software using Winget: Suggested
The winget command is a built-in package manager for Windows 10 and Windows 11. It simplifies installing and managing software from the Windows Store or other sources.
Step 1: Open CMD as Administrator
- Right-click the Start button and select Command Prompt (Admin) or Windows Terminal (Admin).
Command PromptStep 2: Check if winget is Installed
- First, check if
winget
is installed by running:
winget --version
Run "winget"If not installed, ensure you’re using Windows 10 1809+ or Windows 11 and install the App Installer from the Microsoft Store.
Step 3: Search for Software
- You can search for available software by running:
winget search <software_name>
searching VS CodeFor example: winget search vscode
Step 4: Install the Software
- Once you’ve found the software, use the following command to install it:
winget install <software_name>
- For example:
winget install git
Installing softwareAfter installation, you can verify by checking if the software appears in your applications list or by searching for it directly in CMD.
2. Use Chocolatey to Install Applications
Chocolatey is a popular third-party package manager for Windows that allows you to automate software installations through the Command Prompt.
Step 1: Install Chocolatey
- To install Chocolatey, run the following command in CMD as Administrator:
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
ChocolatelyStep 2: Install programs using Chocolatey
- Once Chocolatey is installed, you can install software by running:
choco install <software_name>
PowerShellFor example: choco install googlechrome
(
install Google Chrome)
Step 3: Verify Installation
- Check if the software is installed by running the following command:
choco list --local-only
3. Direct Installer Executables
For certain software, you may want to run an installer directly through CMD.
Step 1: Download the .exe Installer
- Download the installer executable from the software’s official website.
.exeStep 2: Navigate to the Installer’s Location
- Open CMD, and use the
cd
command to navigate to the directory where the installer is located. Example:
cd C:\Downloads
cdStep 3: Run the Installer
- Run the installer using the following command:
software-installer.exe /silent
Run the InstallerMost installers support a /silent
flag, which installs the software without user interaction.
Bonus: Troubleshooting Tips
- Access Denied Errors: Ensure you open CMD as Administrator to avoid any disruption.
- Software Not Found in Package Managers: Double-check the name of the software by using
winget
or choco search
. - Issues with Executables: Ensure the installer supports silent mode or check the documentation for installation options.
Conclusion
Installing programs via CMD in Windows offers a quick and efficient way to manage applications, especially when working with multiple systems or headless environments. Whether you’re a system administrator or developer, knowing how to use winget, or Chocolatey for software management can save time and streamline your workflow.
Similar Reads
Non-linear Components
In electrical circuits, Non-linear Components are electronic devices that need an external power source to operate actively. Non-Linear Components are those that are changed with respect to the voltage and current. Elements that do not follow ohm's law are called Non-linear Components. Non-linear Co
11 min read
Class Diagram | Unified Modeling Language (UML)
A UML class diagram is a visual tool that represents the structure of a system by showing its classes, attributes, methods, and the relationships between them. It helps everyone involved in a projectâlike developers and designersâunderstand how the system is organized and how its components interact
12 min read
Spring Boot Tutorial
Spring Boot is a Java framework that makes it easier to create and run Java applications. It simplifies the configuration and setup process, allowing developers to focus more on writing code for their applications. This Spring Boot Tutorial is a comprehensive guide that covers both basic and advance
10 min read
Backpropagation in Neural Network
Backpropagation is also known as "Backward Propagation of Errors" and it is a method used to train neural network . Its goal is to reduce the difference between the modelâs predicted output and the actual output by adjusting the weights and biases in the network. In this article we will explore what
10 min read
AVL Tree Data Structure
An AVL tree defined as a self-balancing Binary Search Tree (BST) where the difference between heights of left and right subtrees for any node cannot be more than one. The absolute difference between the heights of the left subtree and the right subtree for any node is known as the balance factor of
4 min read
What is Vacuum Circuit Breaker?
A vacuum circuit breaker is a type of breaker that utilizes a vacuum as the medium to extinguish electrical arcs. Within this circuit breaker, there is a vacuum interrupter that houses the stationary and mobile contacts in a permanently sealed enclosure. When the contacts are separated in a high vac
13 min read
Polymorphism in Java
Polymorphism in Java is one of the core concepts in object-oriented programming (OOP) that allows objects to behave differently based on their specific class type. The word polymorphism means having many forms, and it comes from the Greek words poly (many) and morph (forms), this means one entity ca
7 min read
3-Phase Inverter
An inverter is a fundamental electrical device designed primarily for the conversion of direct current into alternating current . This versatile device , also known as a variable frequency drive , plays a vital role in a wide range of applications , including variable frequency drives and high power
13 min read
Random Forest Algorithm in Machine Learning
A Random Forest is a collection of decision trees that work together to make predictions. In this article, we'll explain how the Random Forest algorithm works and how to use it.Understanding Intuition for Random Forest AlgorithmRandom Forest algorithm is a powerful tree learning technique in Machine
7 min read
What is a Neural Network?
Neural networks are machine learning models that mimic the complex functions of the human brain. These models consist of interconnected nodes or neurons that process data, learn patterns, and enable tasks such as pattern recognition and decision-making.In this article, we will explore the fundamenta
14 min read