From 1c4aa415e13b8e416ed4e8c8af718cc699d64027 Mon Sep 17 00:00:00 2001 From: David Yoder Date: Wed, 18 Jan 2023 19:37:06 -0500 Subject: [PATCH] place no product matching statement outside loop --- Uninstall-MSI.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Uninstall-MSI.ps1 b/Uninstall-MSI.ps1 index 5241435..ca8cf4d 100644 --- a/Uninstall-MSI.ps1 +++ b/Uninstall-MSI.ps1 @@ -49,5 +49,6 @@ Foreach ( $reg in $UNINSTALL_KEYS ) { LogMsg "Cannot uninstall ""${DISPLAY_NAME}""`n UninstallString: ${UNINSTALLSTRING}" } } - If ( $PRODUCTUNINSTALLED -eq $false ) { LogMsg "No product matching ${APP_NAME} was found"} } + +If ( $PRODUCTUNINSTALLED -eq $false ) { LogMsg "No product matching ${APP_NAME} was found"} \ No newline at end of file