/// <summary> /// Tries to find FreeLan automatically. /// Searches through Program Files. /// </summary> /// <returns>True if FreeLan is found.</returns> public bool FindFreeLan() { List <string> possiblePaths = new List <string>(); string pfLocation = EnvHelper.GetProgramFilesPath(); string pfx86Location = EnvHelper.GetProgramFilesX86Path(); possiblePaths.Add($"{pfLocation}\\{ProgramRootDir}\\{FreeLanExecutableLocation}"); possiblePaths.Add($"{pfx86Location}\\{ProgramRootDir}\\{FreeLanExecutableLocation}"); foreach (string path in possiblePaths) { if (_fileService.CheckPath(path, true)) { SetFreelanPath(path); return(true); } } return(false); }