Skip to content

wagnermartini/remove-windows-software

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

remove-windows-software

Windows Uninstaller Script

Automated Software Removal for Windows

πŸ“Œ This script was developed with the assistance of AI, combining automation techniques with system management best practices.

This Python script automates the uninstallation of software on Windows, supporting different uninstall methods such as:

  • Standard Uninstallers (retrieved from Windows Registry)
  • MSI-based Installations (silent uninstallation using msiexec)
  • WMI-based Uninstall (if the standard method fails)
  • Appx Package Removal (for UWP apps via PowerShell)
  • DISM Feature Removal (for built-in Windows features)

πŸ”Ή Features

βœ… Searches for installed applications using the Windows Registry
βœ… Executes the appropriate uninstall command automatically
βœ… Supports silent uninstallation for supported programs (e.g., MSI)
βœ… Removes Appx packages using PowerShell
βœ… Uses DISM to disable Windows features
βœ… Generates logs (uninstall.log) for tracking all actions

πŸš€ How to Use

  1. Open Command Prompt or PowerShell.
  2. Run the script with the name of the software to uninstall:
    python uninstall.py "firefox"
    
    

πŸ”„ Script Execution Flow

The script will:

  • πŸ” Search for the software in the Windows Registry
  • πŸ› οΈ Execute the uninstall command if available
  • βš™οΈ If the standard method fails, try WMI-based removal
  • πŸ“¦ If the software is an Appx package, attempt removal via PowerShell
  • πŸ–₯️ If it's a Windows feature, disable it using DISM

πŸ”§ Requirements

  • πŸ–₯️ Windows 10 or later (Administrator privileges required)
  • 🐍 Python 3.x installed
  • πŸ”‘ Run as Administrator for full functionality

πŸ“ Notes

  • 🎯 Silent uninstall parameters are included for some software (e.g., Firefox, PuTTY)
  • πŸ“œ Logs are stored in uninstall.log
  • πŸ” If the software is not found in the registry, the script will attempt WMI, Appx, or DISM removal

About

Python script to uninstall software on Windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages