/// <summary> /// Check if the install location is not empty and is not a system directory /// </summary> public bool IsInstallLocationValid() { if (string.IsNullOrEmpty(InstallLocation?.Trim())) { return(false); } return(!UninstallToolsGlobalConfig.GetAllProgramFiles().Any(x => PathTools.PathsEqual(x, InstallLocation))); }
/// <summary> /// Check if the install location is not empty and is not a system directory /// </summary> public bool IsInstallLocationValid() => !string.IsNullOrEmpty(InstallLocation?.Trim()) && !UninstallToolsGlobalConfig.AllProgramFiles.Any(x => PathTools.PathsEqual(x, InstallLocation));