I am using C# programming language and want to define whether Office Web Apps installed on server in order to hide/show MenuItemTemplate
My variant is as follows:
if(!Ispostback)
{
bool b = File.Exists(@"C:\\Program Files\\Common Files\\Microsoft Shared\\Web Server Extensions\\14\TEMPLATE\\LAYOUTS\\WordViewer.aspx");
mit.visible=b; // mit- means <SharePoint:MenuItemTemplate>
}
but I need something else... what is the correct method?