Get rid of extra parameter

Package removal fallback fails here. Quite likely a copy from feature disablement
This commit is contained in:
CodingWonders 2025-04-19 17:48:44 +02:00
parent 82b09de974
commit c987c8235c

View File

@ -90,7 +90,7 @@ function Microwin-RemovePackages {
$status = "Removing package $package" $status = "Removing package $package"
Write-Progress -Activity "Removing Packages" -Status $status -PercentComplete ($counter++/$pkglist.Count*100) Write-Progress -Activity "Removing Packages" -Status $status -PercentComplete ($counter++/$pkglist.Count*100)
Write-Debug "Removing package $package" Write-Debug "Removing package $package"
dism /english /image="$scratchDir" /remove-package /packagename=$package /remove /quiet /norestart | Out-Null dism /english /image="$scratchDir" /remove-package /packagename=$package /quiet /norestart | Out-Null
if ($? -eq $false) { if ($? -eq $false) {
Write-Host "Package $package could not be removed." Write-Host "Package $package could not be removed."
} }