Add Create Bootable USB (#18)

* Add Create Bootable USB

* Apply suggestion from @CodingWonders

---------

Co-authored-by: CodingWonders <101426328+CodingWonders@users.noreply.github.com>
This commit is contained in:
Real-MullaC
2026-01-02 12:18:19 +00:00
committed by GitHub
parent 23a0eccf36
commit 64babfe986
3 changed files with 66 additions and 0 deletions

View File

@@ -55,6 +55,7 @@ public class PowerManagement {
Write-Host "Index chosen: '$index' from $($sync.MicrowinWindowsFlavors.SelectedValue)"
$copyToUSB = $sync.WPFMicrowinCopyToUsb.IsChecked
$bootable = $sync.WPFMicrowinBootable.IsChecked
$injectDrivers = $sync.MicrowinInjectDrivers.IsChecked
$importDrivers = $sync.MicrowinImportDrivers.IsChecked
@@ -628,6 +629,12 @@ public class PowerManagement {
if ($?) { Write-Host "Done Copying target ISO to USB drive!" } else { Write-Host "ISO copy failed." }
}
if ($bootable) {
Write-Host "Making Bootable USB drive"
Microwin-BootableUSB("$($SaveDialog.FileName)")
if ($?) { Write-Host "Done making bootable USB drive!" } else { Write-Host "Bootable USB creation failed." }
}
Write-Host " _____ "
Write-Host "(____ \ "
Write-Host " _ \ \ ___ ____ ____ "