Work - 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
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 winbootmate full
def log(self, msg): self.output.insert(tk.END, msg + "\n") self.output.see(tk.END) self.root.update() def create_bootable_usb(self): iso_path = filedialog
self.log("Extracting ISO to USB (this may take a while)...") # Mount ISO mount_result = subprocess.run(f'powershell Mount-DiskImage -ImagePath "{iso_path}" -PassThru', capture_output=True, text=True) if mount_result.returncode != 0: self.log("Failed to mount ISO. Try using Rufus or Ventoy.") return # Get mounted drive letter mount_letter = None for line in mount_result.stdout.splitlines(): if ":" in line and "\\" in line: # crude extraction parts = line.split() for p in parts: if len(p) == 2 and p[1] == ':': mount_letter = p break if not mount_letter: self.log("Could not find mounted ISO drive.") return Try using Rufus or Ventoy
