Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • DSA
  • Practice Problems
  • Python
  • C
  • C++
  • Java
  • Courses
  • Machine Learning
  • DevOps
  • Web Development
  • System Design
  • Aptitude
  • Projects
Open In App
Next Article:
How to Install Visual C++ on Windows?
Next article icon

How to Install Software via CMD

Last Updated : 05 Apr, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

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).
cmd-as-start
Command Prompt

Step 2: Check if winget is Installed

  • First, check if winget is installed by running:
winget --version
winget
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>
search-vscode
searching VS Code

For 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
get-git-vs
Installing software

After 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'))
choco30
Chocolately

Step 2: Install programs using Chocolatey

  • Once Chocolatey is installed, you can install software by running:
choco install <software_name>
choco-gc
PowerShell

For 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.
installer1
.exe

Step 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
dw1
cd

Step 3: Run the Installer

  • Run the installer using the following command:
software-installer.exe /silent
ins11
Run the Installer

Most 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.


Next Article
How to Install Visual C++ on Windows?

I

iofficialshrey
Improve
Article Tags :
  • TechTips
  • Installation Guide
  • How To
  • Command Prompt

Similar Reads

  • How to Uninstall Software via CMD
    Uninstalling programs through the Command Prompt (CMD) can be a powerful method, especially when you can't access the standard Windows settings or need to automate the process. Whether you prefer using text-based commands or need a quick solution to remove software from your system, this guide will
    3 min read
  • How to Install Cmder on Windows?
    Cmder is a command prompt user interface. It is often used in windows machines mainly. Generally, users like to interact with graphical user interfaces. As in command prompt in windows are not that graphical. Understanding some concepts of the GUI method is most important nowadays. Cmder is one of t
    2 min read
  • How to Install Visual C++ on Linux?
    Visual C++ is Software made by Microsoft Corporation. It is used to build desktop applications using the C and C++ languages. It was initially released in February 1993. In this article, we are going to learn how we can install Visual C++ in our Linux System. Installing Visual C++ on Linux: Step 1:
    2 min read
  • How to Install Visual C++ in MacOS?
    Visual C++ is Software made by Microsoft Corporation. It is used to build desktop applications using the C and C++ languages. It was initially released in February 1993. In this article, we are going to learn how we can install Visual C++ in our Mac operating system. Installing Visual C++on MacOS: F
    1 min read
  • How to Install Visual C++ on Windows?
    In this article, we will discuss the process of installing Visual C++ on Windows. Visual C++ is part of the general "C suite" of programming languages often used for many different types of development projects. The full name of the product is Microsoft Visual C++, which is sometimes abbreviated as
    1 min read
  • How to Install C# on MacOS?
    C# is a programming language that is used for general purposes. But the C# programming language is classified as one of the High-Level programming languages. Unlike the C programming language, the C# programming language can be used in other tasks. There might be a significant similarity between the
    4 min read
  • How to Install Software Applications in Linux?
    Linux offers a flexible and powerful environment for running software, but if you're new to the platform, you might wonder how to install software in Linux. Unlike other operating systems, Linux provides multiple ways to install applications, whether through package managers, terminal commands, or g
    7 min read
  • How to Install GNU Octave on Windows?
    Octave is free and open source software. It features high level programming language and used for numerical computation with an interactive environment. It also features mathematics-oriented syntax with built-in plotting and visualization tools and also provides Octave syntax to solve problems every
    3 min read
  • How to Install FreeCAD on Windows?
    FreeCAD is a general-purpose, free, and open-source software. It was initially released on 29 October 2002 and written in C++ and Python languages. It is a parametric 3D computer-aided design (CAD) modeler and a building information modeling (BIM) software that supports the finite element method (FE
    3 min read
  • How to Install GIMP on Windows?
    GIMP is a free and open-source raster graphics editor used for image manipulation and image editing, free-form drawing, transcoding between different image file formats, and more specialized tasks. GIMP is released under GPL-3.0-or-later license and is available for Linux, macOS, and Microsoft Windo
    2 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences