MOSS Forum

 
Home » Forum » MOSS       Ask a questionRSS Feeds

MOSS flag in SharePoint API

  Asked By: Roman Christensen         Date: Mar 03, 2008      Category: MOSS      Views: 196
 

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?

Tagged:          

 

1 Answer Found

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

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.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].