[MicroWin] Fixed divide by zero error for fallback (#3174)

<Insert the never mind - misspelled a variable meme here>
This commit is contained in:
CodingWonders 2025-01-28 18:03:35 +01:00 committed by GitHub
parent 5550e40270
commit 32cb94f392
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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) {