public bool NeedInstall(string version)
        {
            if (!EnvironmentPathUtility.Exists(ExeName))
            {
                return(true);
            }

            var currentVersion = int.Parse(GetVersion().Replace(".", ""));
            var targetVersion  = int.Parse(version.Replace(".", ""));

            return(currentVersion < targetVersion);
        }
예제 #2
0
 public bool NeedInstall()
 {
     return(!EnvironmentPathUtility.Exists(ExeName));
 }