don't print out empty items
This commit is contained in:
@@ -962,6 +962,10 @@ Function Uninstall-MSI {
|
|||||||
|
|
||||||
# Print out uninstall string for unsupported apps
|
# Print out uninstall string for unsupported apps
|
||||||
If ( ($uninstall) -and ($installed_app.MSI -eq $false) ) {
|
If ( ($uninstall) -and ($installed_app.MSI -eq $false) ) {
|
||||||
|
|
||||||
|
# Skip apps that have no display name or uninstall string
|
||||||
|
If ( ([string]::IsNullOrEmpty($DisplayName)) -and ([string]::IsNullOrEmpty($UninstallString)) ) { $uninstall = $false ; Continue }
|
||||||
|
|
||||||
Write-Output "Cannot uninstall ""${DisplayName}""`n UninstallString: ${UninstallString}"
|
Write-Output "Cannot uninstall ""${DisplayName}""`n UninstallString: ${UninstallString}"
|
||||||
$uninstall = $false
|
$uninstall = $false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user