diff --git a/Publish-BiztalkBtdfApplication.psm1 b/Publish-BiztalkBtdfApplication.psm1 index 2c9fcd7..f438aca 100644 --- a/Publish-BiztalkBtdfApplication.psm1 +++ b/Publish-BiztalkBtdfApplication.psm1 @@ -334,12 +334,12 @@ function Get-AppUninstallCommand(){ [string]$appDisplayName ) $app = Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\** | Where-Object { - $_.DisplayName -like �$appDisplayName*� + $_.DisplayName -like "$appDisplayName*" } if ($app -eq $null){ $app = Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\** | Where-Object { - $_.DisplayName -like �$appDisplayName*� + $_.DisplayName -like "$appDisplayName*" } }