Exchange 2013 Upgrade/Uninstall fails while uninstall Search Foundation for Exchange

The following error was received when perming an Uninstall of Exchange 2013 “Error occurred while uninstalling Search Foundation for Exchange.System.Exception: Cannot determine the product name registry subkey, neither the ‘RegistryProductName’ application setting nor the ‘CERES_REGISTRY_PRODUCT_NAME’ environment variable was set.” catch{ $deleteErrorMsg = “Failure cleaning up SearchFoundation Data folder. – ” + $dataFolderPath + ” – ” + $_.Exception.Message; Write-ExchangeSetupLog -Error $deleteErrorMsg; } as run: “Error occurred while uninstalling Search Foundation for Exchange.System.Exception: Cannot determine the product name registry subkey, neither the ‘RegistryProductName’ application setting nor the ‘CERES_REGISTRY_PRODUCT_NAME’ environment variable was set at Microsoft.Ceres.Common.Utils.Registry.RegistryUtils.get_ProductKeyName() in n:srcsearchfoundationCommonUtilsRegistryRegistryUtils. at Microsoft.Ceres.Exchange.PostSetup.DeploymentManager.DeleteDataDirectory() at Microsoft.Ceres.Exchange.PostSetup.DeploymentManager.Uninstall(String installDirectory, Continue Reading