Monday, June 15, 2026
HomeLanguagesGet a List of Installed Softwares in Windows using Python

Get a List of Installed Softwares in Windows using Python

In this article, we are going to write a Python script to get the installed software list in windows. We will use the subprocess module to interact with cmd and to retrieve information into your Python IDE. We can read the cmd command through the subprocess module.

Let’s see the logic, if we run this wmic product get name code into our terminal then we got like this:

Let’s write the Python code to get installed software list information.

Approach:

  • Import the subprocess module.
  • Get the output for the command “wmic product get name” using subprocess.check_output()
  • Now split the string and arrange your data with your own needs.

Implementation:

Python3




# importing the module
import subprocess
  
# traverse the software list
Data = subprocess.check_output(['wmic', 'product', 'get', 'name'])
a = str(Data)
  
# try block
try:
    
    # arrange the string
    for i in range(len(a)):
        print(a.split("\\r\\r\\n")[6:][i])
  
except IndexError as e:
    print("All Done")


Output:

RELATED ARTICLES

2 COMMENTS

Most Popular

Dominic
32515 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6897 POSTS0 COMMENTS
Nicole Veronica
12013 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12109 POSTS0 COMMENTS
Shaida Kate Naidoo
7019 POSTS0 COMMENTS
Ted Musemwa
7262 POSTS0 COMMENTS
Thapelo Manthata
6976 POSTS0 COMMENTS
Umr Jansen
6964 POSTS0 COMMENTS