From b5c80bfbd2d27a663d2cb6400c14798d8340691c Mon Sep 17 00:00:00 2001 From: MyDrift Date: Wed, 6 Nov 2024 17:44:07 +0100 Subject: [PATCH] write info into shell for user Co-authored-by: CodingWonders <101426328+CodingWonders@users.noreply.github.com> --- functions/public/Invoke-WPFGetIso.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/functions/public/Invoke-WPFGetIso.ps1 b/functions/public/Invoke-WPFGetIso.ps1 index dc706aa0..8a05648a 100644 --- a/functions/public/Invoke-WPFGetIso.ps1 +++ b/functions/public/Invoke-WPFGetIso.ps1 @@ -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