IsInstalled() публичный статический Метод

public static IsInstalled ( MSOfficeApplications app ) : bool
app MSOfficeApplications
Результат bool
Пример #1
0
        private ATMLContext()
        {
            //---------------------------------------------------------------------//
            //--- We will try the registry first for the database location      ---//
            //--- This way the installed database may be bypassed - primarily   ---//
            //--- for development reasons.                                      ---//
            //---------------------------------------------------------------------//
            LoadDatabasePathFromRegistry();

            //---------------------------------------------------------------------//
            //--- Under normal conditions we'll get the database path from the  ---//
            //--- common application data folder created for this application.  ---//
            //---------------------------------------------------------------------//
            LoadDatabasePathFromInstallationDataPath();

            _msWordInstalled       = UTRSOfficeUtils.IsInstalled(UTRSOfficeUtils.MSOfficeApplications.Word);
            _msExcelInstalled      = UTRSOfficeUtils.IsInstalled(UTRSOfficeUtils.MSOfficeApplications.Excel);
            _msAccessInstalled     = UTRSOfficeUtils.IsInstalled(UTRSOfficeUtils.MSOfficeApplications.Access);
            _msPowerPointInstalled = UTRSOfficeUtils.IsInstalled(UTRSOfficeUtils.MSOfficeApplications.PowerPoint);
            _msOutlookInstalled    = UTRSOfficeUtils.IsInstalled(UTRSOfficeUtils.MSOfficeApplications.Outlook);
        }