Skip to content
PrithviWHPublic

About

A modern, lightweight Windows Program Uninstaller & Leftover Trace Cleaner

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Uninsta Logo

Uninsta

A modern, lightweight Windows Program Uninstaller & Leftover Trace Cleaner

Platform Python Dependencies License


Uninsta is a fast, dark-themed Windows desktop utility built with Python and Tkinter. It lets you inspect, search, uninstall, and clean up leftover files and registry traces for both Win32 desktop software and Microsoft Store (AppX/MSIX) apps—with zero third-party runtime dependencies.


✨ Features

  • Dual-Source App Management
    • Installed Software: Scans HKLM and HKCU Registry Uninstall keys (both 64-bit and 32-bit WOW6432Node) with version, publisher, size, and install date metadata.
    • Microsoft Apps: Discovers removable Microsoft Store (AppX / MSIX) packages via PowerShell Get-AppxPackage and supports clean removal via Remove-AppxPackage.
    • All Programs: Unified view with instant switching from the header tabs or left sidebar.
  • Native Application Icons
    • Extracts real 16×16 and 32×32 icons asynchronously via Win32 ExtractIconExW from DisplayIcon, UninstallString, C:\Windows\Installer\{GUID} MSI caches, and InstallLocation.
  • Smart Post-Uninstall Leftover Cleaner
    • Waits for the official uninstaller (including child or elevated wizards) to finish before scanning InstallLocation, Program Files, ProgramData, AppData, Start Menu folders, and HKCU/HKLM Software registry keys.
    • Prompts with a detailed list of remaining folders, files, and registry keys before deleting anything, and safely blocks protected OS/root paths.
  • Master–Detail App Inspector & Context Menu
    • Live App Inspector displaying architecture badge (64-bit, 32-bit (WOW64), Microsoft Store), publisher, version, size, install date, and path with one-click Copy, Open Dir, Registry, and Cmd actions.
    • Right-click context menu with Uninstall..., Force Removal, Remove Entry, Registry Entry, Installation Folder, Program Website, and Google for (Program Name, Publisher, Uninstall Guide).
  • Sorting, Search & Export
    • Live search (Ctrl+F) across program names and publishers, sortable columns (Program Name, Publisher, Size, Installed On), keyboard shortcuts (Ctrl+K), and Export to CSV.

📁 Project Structure

Uninsta/
├── main.py                        # Root application launcher
├── config.ini                     # Default UI, text, and logging settings
├── icon.ico                       # Application icon
├── requirements.txt               # Dev/build dependencies (PyInstaller, pytest, black, flake8)
├── Uninsta.spec                   # PyInstaller single-file executable spec
├── src/
│   ├── main.py                    # App bootstrap (DPI awareness, config, logging, Tk root)
│   ├── core/
│   │   ├── registry.py            # Windows Registry Uninstall scanner & entry removal
│   │   ├── store_apps.py          # Microsoft Store (AppX/MSIX) package discovery
│   │   ├── uninstaller.py         # Background UninstallManager & completion watcher
│   │   ├── leftovers.py           # Post-uninstall filesystem & registry trace cleaner
│   │   └── icon_extractor.py      # Pure-stdlib Win32 icon-to-PNG extractor
│   ├── ui/
│   │   ├── main_window.py         # Aurora Violet Master–Detail main window
│   │   ├── components.py          # Theme palette, PillButton, SearchEntry, DarkContextMenu
│   │   ├── leftover_dialog.py     # Leftover traces confirmation modal
│   │   ├── about_dialog.py        # About Uninsta modal
│   │   └── keyboard_shortcuts.py  # Global shortcut manager & dialog
│   └── utils/
│       ├── paths.py               # Resource & %LOCALAPPDATA%\Uninsta path resolution
│       ├── config.py              # INI configuration loader/saver
│       ├── logger.py              # File & console logging with log rotation
│       ├── localization.py        # gettext localization helper
│       ├── accessibility.py       # Tab order & focus ring manager
│       └── version.py             # Version & build date helpers
├── locale/                        # gettext translation templates (.pot / .po)
└── tests/                         # Unit test suite (unittest)

🚀 Getting Started

Run from Source

  1. Clone the repository:
    git clone https://github.com/PrithviWH/Uninsta.git
    cd Uninsta
  2. Create a virtual environment and run (no extra runtime packages required):
    python -m venv .venv
    .\.venv\Scripts\python.exe main.py

Run Tests

.\.venv\Scripts\python.exe -m unittest discover -s tests -v

Build Windows Executable

Install dev dependencies (pyinstaller) and build using Uninsta.spec:

.\.venv\Scripts\pip.exe install -r requirements.txt
.\.venv\Scripts\pyinstaller.exe Uninsta.spec

The standalone executable will be generated in dist\Uninsta.exe. When running frozen, user configuration and logs are stored in %LOCALAPPDATA%\Uninsta.


⌨️ Keyboard Shortcuts

Shortcut Action
Ctrl + F Focus search box
Esc Clear search
F5 Refresh program list
Delete Uninstall selected program
Ctrl + K Show keyboard shortcuts
F1 Open About dialog
Alt + F4 Exit Uninsta

👤 Author

Prithvi


📄 License

This project is licensed under the MIT License — see the LICENSE file for details.

About

A modern, lightweight Windows Program Uninstaller & Leftover Trace Cleaner

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages