Logo 
Search:

MOSS Forum

Ask Question   UnAnswered
Home » Forum » MOSS       RSS Feeds

MOSS flag in SharePoint API

  Asked By: Roman    Date: Mar 03    Category: MOSS    Views: 791

Is there an easy, elegant way to identify, through the object model,
if MOSS is installed on the farm? I've looked at the SPFarm object
and I don't know of any aside from attempting to access DLLs that
would throw an error in a WSS environment.

Any thoughts?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Anuj Lakhe     Answered On: Mar 03

Not that I am aware of. I do the following...

string isapiFolder =
Microsoft.SharePoint.Utilities.SPUtility.GetGenericSetupPath("ISAPI");
string userProfileServicePath = System.IO.Path.Combine(isapiFolder,
"UserProfileService.asmx");
bool SharePointServerInstalled =
System.IO.File.Exists(userProfileServicePath);

 
Didn't find what you were looking for? Find more on MOSS flag in SharePoint API Or get search suggestion and latest updates.




Tagged: