π 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)
β
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
- Open Command Prompt or PowerShell.
- Run the script with the name of the software to uninstall:
python uninstall.py "firefox"
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
- π₯οΈ Windows 10 or later (Administrator privileges required)
- π Python 3.x installed
- π Run as Administrator for full functionality
- π― 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