Update files

- Add detections for whether the image to be processed by MicroWin is Windows 10 or later
- Add procedure to clear the indexes ComboBox (WinForms term) every time an ISO is specified
This commit is contained in:
CodingWonders
2024-01-27 21:43:35 +01:00
parent aed92704a8
commit c34c804037
4 changed files with 88 additions and 2 deletions

View File

@ -14,6 +14,36 @@ function Invoke-MicroWin-Helper {
}
function Is-CompatibleImage() {
<#
.SYNOPSIS
Checks the version of a Windows image and determines whether or not it is compatible depending on the Major property
.PARAMETER imgVersion
The version of the Windows image
#>
param
(
[Parameter(Mandatory = $true)] [string] $imgVersion
)
try {
$version = [Version]$imgVersion
if ($version.Major -ge 10)
{
return $True
}
else
{
return $False
}
} catch {
return $False
}
}
function Remove-Features([switch] $dumpFeatures = $false, [switch] $keepDefender = $false) {
<#