Skip to content

Commit

Permalink
write info into shell for user
Browse files Browse the repository at this point in the history
Co-authored-by: CodingWonders <[email protected]>
  • Loading branch information
MyDrift-user and CodingWonders authored Nov 6, 2024
1 parent f3bffa9 commit b5c80bf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions functions/public/Invoke-WPFGetIso.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ function Invoke-WPFGetIso {

$sync.MicrowinWindowsFlavors.Items.Add("$imageIdx : $imageName")

$sync.MicrowinWindowsFlavors.SelectedIndex = 0
Write-Host "Finding suitable Pro edition. This can take some time. Do note that this is an automatic process that might not select the edition you want."

if ((Get-WindowsImage -ImagePath $wimFile -Index $_.ImageIndex).EditionId -eq "Professional") {
# We have found the Pro edition
$sync.MicrowinWindowsFlavors.SelectedIndex = $_.ImageIndex - 1
Expand Down

0 comments on commit b5c80bf

Please sign in to comment.