Esempio n. 1
0
        private static string GetMaxVersionPath(int v = 0)
        {
            string path      = null;
            var    newestVer = InstalledVersionManager.GetNewestVersion();

            if (newestVer != null && newestVer.Version >= v)
            {
                path = newestVer.Path;
            }
            return(path);
        }
Esempio n. 2
0
        private static string GetMaxVersionExeFileName()
        {
            var fn            = string.Empty;
            var newestVersion = InstalledVersionManager.GetNewestVersion();

            if (newestVersion != null)
            {
                fn = newestVersion.Path + "\\Bot.exe";
            }
            if (!string.IsNullOrEmpty(fn) && !File.Exists(fn))
            {
                fn = string.Empty;
            }
            return(fn);
        }