What is the most reliable way to determine which version of SharePoint is installed. Whether it is WSS or MOSS. If MOSS, whether it is standard or enterprise.
I want to programmatically detect the exact SharePoint version installed..
PS: I already have posted this question http://www.sharepointoverflow.com/questions/1395/determine-which-edition-of-sharepoint-is-installed but could not find a convincing answer.