Compare commits

..

No commits in common. "157f3b9c5d42699181b8d01da6ac414f73abf025" and "61b23e2ef3f689e555527bb59f8a2ea87b86ec93" have entirely different histories.

View file

@ -248,7 +248,7 @@ function UninstallModernApp {
elseif ( $params.ContainsKey('name') ) {
Write-Host -NoNewLine "`tUninstall $($params.name) : "
try {
$(Get-AppxPackage -AllUsers | Where-Object { $_.name -like "*$($params.name)*" } | Remove-AppxPackage)
$(Get-AppxPackage -AllUsers | Where-Object { $_.name -like "*$($params.name)*" } | Remove-AppxPackage $pkg)
Write-Host -ForegroundColor Green "done"
}
catch {
@ -395,7 +395,7 @@ function DelFile {
Write-Host -ForegroundColor Yellow "not found"
return
}
$command = "Remove-Item $path -ErrorAction SilentlyContinue -Force -Path `"$path`""
$command = "Remove-Item $command -ErrorAction SilentlyContinue -Force -Path `"$path`""
if ( $params.ContainsKey('recurse') -and $params.recurse -eq $true ) {
$command += "-Recurse"
}
@ -500,4 +500,3 @@ catch {
Write-Host -NoNewline -ForegroundColor Red "Error`n`t"
Write-Host -ForegroundColor DarkRed $Error[0].Exception.Message
}
ri