From 8a6067d653ebe84ae392298aa07ddc5ef5c303ba Mon Sep 17 00:00:00 2001 From: David Yoder Date: Wed, 1 Nov 2023 21:14:33 -0400 Subject: [PATCH] minor changes --- Tools.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tools.ps1 b/Tools.ps1 index c7826a6..370347f 100644 --- a/Tools.ps1 +++ b/Tools.ps1 @@ -910,7 +910,7 @@ Function Test-Uninstall-MSI { # Exit if we can't find any software at all If ( $UNINSTALL_KEYS.Length -eq 0 ) { Write-Error "Could not find any installed apps in the Windows Registry" ; Return } - # Array to store custom objects about each installed MSI app + # Array to store custom objects about each installed MSI app $INSTALLED_APPS = @() Foreach ( $reg in $UNINSTALL_KEYS ) { @@ -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 }