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); }
public bool NeedInstall() { return(!EnvironmentPathUtility.Exists(ExeName)); }