How to detect if Windows Server AppFabric is installed

Here is a little PowerShell script that will tell you if Windows Server AppFabric is installed

edit 6/29 – thanks for the comments – this is a much cleaner script - Ron

 function IsWindowsServerAppFabricInstalled()
{
    if(Get-HotFix -Id "KB970622") {$true} else {$false}
}

IsWindowsServerAppFabricInstalled