mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-05-24 00:07:24 -05:00
[MicroWin] Fixed divide by zero error for fallback (#3174)
<Insert the never mind - misspelled a variable meme here>
This commit is contained in:
parent
5550e40270
commit
32cb94f392
@ -88,7 +88,7 @@ function Microwin-RemovePackages {
|
|||||||
} else {
|
} else {
|
||||||
foreach ($package in $pkgList) {
|
foreach ($package in $pkgList) {
|
||||||
$status = "Removing package $package"
|
$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"
|
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 /remove /quiet /norestart | Out-Null
|
||||||
if ($? -eq $false) {
|
if ($? -eq $false) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user