Winbootmate !!link!! Full Instant

self.log("Preparing USB with diskpart...") subprocess.run(f"diskpart /s {dp_script_path}", shell=True, capture_output=True) os.unlink(dp_script_path)

# Output area self.output = scrolledtext.ScrolledText(root, wrap=tk.WORD, height=20, font=("Consolas", 9)) self.output.pack(fill=tk.BOTH, expand=True, padx=10, pady=10) winbootmate full

def create_bootable_usb(self): iso_path = filedialog.askopenfilename(title="Select Windows ISO", filetypes=[("ISO files", "*.iso")]) if not iso_path: return # Get USB drive letter drives = [] for d in ['D:', 'E:', 'F:', 'G:', 'H:', 'I:']: if os.path.exists(d): drives.append(d) if not drives: self.log("No removable drives found.") return "Fix MBR") self.run_admin_cmd("bootrec /fixboot"

self.log(f"\n--- Creating bootable USB on {usb_drive} from {iso_path} ---") self.log("This will FORMAT the USB drive. Continue?") if not messagebox.askyesno("Warning", f"All data on {usb_drive} will be erased. Continue?"): return "Fix boot sector") self.run_admin_cmd("bootrec /scanos"

def fix_boot_errors(self): self.log("\n--- Attempting common boot fixes ---") self.run_admin_cmd("bootrec /fixmbr", "Fix MBR") self.run_admin_cmd("bootrec /fixboot", "Fix boot sector") self.run_admin_cmd("bootrec /scanos", "Scan for OS") self.run_admin_cmd("bootrec /rebuildbcd", "Rebuild BCD") self.log("Reboot to see if issues are resolved.")