mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-12-28 08:51:31 -06:00
move console log & index setting
This commit is contained in:
parent
8ac72dc77d
commit
4ae82c212a
@ -261,6 +261,9 @@ function Invoke-WPFGetIso {
|
|||||||
}
|
}
|
||||||
$sync.MicrowinWindowsFlavors.Items.Clear()
|
$sync.MicrowinWindowsFlavors.Items.Clear()
|
||||||
|
|
||||||
|
$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."
|
||||||
|
|
||||||
$images = Get-WindowsImage -ImagePath $wimFile
|
$images = Get-WindowsImage -ImagePath $wimFile
|
||||||
|
|
||||||
# Populate the list of Windows flavors and find the Pro edition
|
# Populate the list of Windows flavors and find the Pro edition
|
||||||
@ -270,9 +273,6 @@ function Invoke-WPFGetIso {
|
|||||||
|
|
||||||
$sync.MicrowinWindowsFlavors.Items.Add("$imageIdx : $imageName")
|
$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") {
|
if ((Get-WindowsImage -ImagePath $wimFile -Index $_.ImageIndex).EditionId -eq "Professional") {
|
||||||
# We have found the Pro edition
|
# We have found the Pro edition
|
||||||
$sync.MicrowinWindowsFlavors.SelectedIndex = $_.ImageIndex - 1
|
$sync.MicrowinWindowsFlavors.SelectedIndex = $_.ImageIndex - 1
|
||||||
|
Loading…
Reference in New Issue
Block a user