Is Oracle WebLogic10 Installed?

We have a handful of boxes running WebLogic10 so it's not part of the base image.  Here's a quick way to determine if it's installed.

$reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey('LocalMachine', $myComputer);
$subKey= "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Oracle WebLogic" -replace '\\', '\\';
if (!($reg.OpenSubKey($subkey))) {
    Write-Warning ("${myComputer}: WebLogic10 not installed");
    $pass = $false;
}