minor changes

This commit is contained in:
2023-11-01 21:14:33 -04:00
parent 4e1ca02189
commit 8a6067d653
+2 -2
View File
@@ -925,7 +925,7 @@ Function Test-Uninstall-MSI {
$MSI = $true
# Get the product code from the UninstallString or ModifyPath if the app is installed via MSI
# Get the product code from the UninstallString
If ( ![string]::IsNullOrEmpty($REG_PROPERTY.UninstallString) ) { $PRODUCT_CODE = $(Get-GUIDFromMSIUninstallString -str $REG_PROPERTY.UninstallString) }
# Get the product code from the ModifyPath
@@ -971,7 +971,7 @@ Function Test-Uninstall-MSI {
}
# Print out uninstall string for unsupported apps
If ( ($uninstall) -and ($installed_app.UninstallSupported -eq $false) ) {
If ( ($uninstall) -and ($installed_app.MSI -eq $false) ) {
Write-Output "Cannot uninstall ""${DisplayName}""`n UninstallString: ${UninstallString}"
$uninstall = $false
}