I need to know if I am working with SharePoint Services or SharePoint Portal Server when using the SP API. Is there a way to do this in code (C#)?
+2
A:
Check out Karine Bosch's blog post "Determine if MOSS is installed by checking the Registry key". This should help.
Pete Skelly
2009-04-28 12:50:02
this is helpful if one needs to make a decision before actually invoking the api.
Ries
2009-12-11 08:58:30
+3
A:
You can check to see if the build version is different using SPFarm.BuildVersion:
http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spfarm.buildversion.aspx
webwires
2009-04-28 15:12:08
+1
A:
Remember that even though MOSS is installed on the server, it might very well be that only WSS features are activated for the sites / site collections your code has to work on. So an alternative way would be to check if certain MOSS specific features are available on the server AND maybe even check if they have been activated. A good candidate would be the Publishing Feature, which only comes with MOSS.
LeonZandman
2009-04-28 20:08:44