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

This post is to explain one of the common problem experienced during upgrade / uninstall of  Exchange Server 2013. The Process fails while uninstall Search foundation for Exchange.     Exchange Server 2013 Setup logs show the error below.”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…

3