Esempio n. 1
0
        protected internal void GetInstalledVersions()  //5 td
        {
            installedVersions = new List <Version>();
            List <string> versions = MyFileWorker.GetRegistryVersions("SOFTWARE\\DevExpress\\Components\\");
            const string  projectUpgradeToolRelativePath = "Tools\\Components\\ProjectConverter-console.exe";

            foreach (string rootPath in versions)
            {
                var    rootPath2  = Path.Combine(rootPath, projectUpgradeToolRelativePath);
                string libVersion = GetProjectUpgradeVersion(rootPath2);
                var    vers       = new Version(libVersion);
                vers.Path = rootPath2;
                installedVersions.Add(vers);
            }
            mainMajorLastVersion = installedVersions.Where(y => y.Major <= lastReleasedVersion).Max();
        }