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
def view_boot_entries(self): self.log("\n--- Current Boot Entries ---") self.run_admin_cmd("bcdedit /enum", "Enumerating BCD store") winbootmate full
self.log("Preparing USB with diskpart...") subprocess.run(f"diskpart /s {dp_script_path}", shell=True, capture_output=True) os.unlink(dp_script_path) winbootmate full