[MicroWin] Fixed divide by zero error for fallback

<Insert the never mind - misspelled a variable meme here>
This commit is contained in:
CodingWonders
2025-01-24 16:44:35 +01:00
parent eba5b35978
commit 81d631ca74

View File

@ -88,7 +88,7 @@ function Microwin-RemovePackages {
} else {
foreach ($package in $pkgList) {
$status = "Removing package $package"
Write-Progress -Activity "Removing features" -Status $status -PercentComplete ($counter++/$featlist.Count*100)
Write-Progress -Activity "Removing Packages" -Status $status -PercentComplete ($counter++/$pkglist.Count*100)
Write-Debug "Removing package $package"
dism /english /image="$scratchDir" /remove-package /packagename=$package /remove /quiet /norestart | Out-Null
if ($? -eq $false) {