Skip to content

pwdLuiys/MaleniaPF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MaleniaPF - Post-Format Automation Tool

"I am Malenia, Blade of Miquella, and I have never known defeat."

Formatting Windows is the easy part. Spending the next three hours downloading drivers, clicking "Next" on installers, and enabling legacy features is the part that defeats us.

MaleniaPF is a Python-based automation suite designed to handle the post-installation fatigue. It identifies your hardware, pulls the correct drivers, bulk-installs your software via Winget, and tweaks Windows features without you lifting a finger.

Quick Start (PowerShell)

You do not need Python or Git installed to run this. Just open PowerShell as Administrator and run the installation script.

irm https://raw.githubusercontent.com/pwdLuiys/MaleniaPF/refs/heads/main/install.ps1 | iex

What this does:

  1. Checks for dependencies (Winget, Chrome).
  2. Creates a clean workspace at %USERPROFILE%\MaleniaPF.
  3. Downloads the latest binary engine.
  4. Launches the interactive menu.

Features

The tool is divided into three main logic modules:

1. Hardware & Driver Automation (GPUs.py)

Uses WMI (Windows Management Instrumentation) to scan the system hardware without relying on heavy third-party libraries that crash in virtual machines.

  • NVIDIA & Intel: Direct retrieval of the latest official installers.
  • AMD (The painful one): Since AMD URLs are unpredictable, the tool creates a headless Selenium browser instance to navigate their support page, find the correct "Minimal Setup" executable, and download it for you.
  • CPU Logic: Smart detection for AMD Ryzen chipsets. If you have an AMD CPU but an NVIDIA GPU, the tool is smart enough to still fetch the AMD Chipset drivers.
  • VM Safe: Includes fallback logic. If you run this in VirtualBox, it won't crash; it will politely tell you that you are running on a toaster.

2. Software Suite (installThings.py)

A wrapper around the official Windows Package Manager (Winget).

  • Silent Installation: No wizards. No "I accept the terms." It just installs.
  • Smart Skipping: Checks if the package (e.g., Chrome, Discord, VS Code) is already present to save bandwidth.
  • The List: Curated list of essentials including browsers (Brave, Firefox, Zen), dev tools (Python, Node, Git), and utilities (7-Zip, Steam, OBS).

3. Windows Features & Tweaks (WindowsFeatures.py)

Enables system components using DISM so you don't have to dig through the Control Panel.

  • Dev Pack: Enables WSL 2 (Windows Subsystem for Linux) and the Virtual Machine Platform automatically.
  • Legacy Gaming: Enables DirectPlay (required for games from the 2000s that refuse to launch on Windows 11).
  • Power Plan: Unlocks the hidden "Ultimate Performance" power plan.

How to Build (For Developers)

If you don't trust the pre-compiled .exe (good habit) or want to modify the code, you can build it yourself.

Requirements:

  • Python 3.10+
  • Chrome (for the Selenium module)

Installation:

git clone https://github.com/pwdLuiys/MaleniaPF.git
cd MaleniaPF
pip install -r requirements.txt

Compiling to .exe: We use PyInstaller. Note the specific flags required to make wmi and multiprocessing behave correctly on Windows.

python -m PyInstaller --onefile --clean --hidden-import=cpuinfo --name="MaleniaPF" main.py

Directory Structure

The tool respects your file system. It creates a single directory for its operations:

  • %USERPROFILE%\MaleniaPF\ -> The tool's home.
  • %USERPROFILE%\MaleniaPF\bin\ -> Where the executable lives.
  • %USERPROFILE%\MaleniaPF\Downloads\ -> Where all installers (NVIDIA, AMD, DirectX) are saved.

Note: The tool automatically cleans up partial downloads (.crdownload) and old installer versions to save space.

Disclaimer

This software downloads drivers and modifies system features. While it only uses official sources (NVIDIA, AMD, Microsoft Winget), the final click to install graphics drivers is left to the user to prevent screen flickering during critical operations.

Use at your own risk. If your computer achieves sentience and takes over the world, I am not responsible.

License

MIT License. Feel free to fork, fix, or complain.

About

post format tool

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors