37 bool validInstallationDir =
false;
43 key.
SetName(
_T(
"HKEY_LOCAL_MACHINE\\Software\\Cygwin\\setup"));
48 if (
wxDirExists(tempMasterPath + wxFILE_SEP_PATH +
_T(
"bin")))
49 validInstallationDir =
true;
51 if (!validInstallationDir)
53 key.
SetName(
_T(
"HKEY_LOCAL_MACHINE\\Software\\Cygnus Solutions\\Cygwin\\mounts v2\\/"));
58 if (
wxDirExists(tempMasterPath + wxFILE_SEP_PATH +
_T(
"bin")) )
59 validInstallationDir =
true;
64 if (!validInstallationDir)
67 wxString cProgramDir = tempMasterPath + wxFILE_SEP_PATH +
_T(
"bin") + wxFILE_SEP_PATH;
72 wxFile pfFile(cProgramFullname);
76 char buffer[10] = {0};
77 pfFile.
Read(buffer,10);
78 if (memcmp(
"!<symlink>", buffer, 10) != 0)
bool wxFileExists(const wxString &filename)
bool wxDirExists(const wxString &dirname)
virtual void Reset()
Reset settings to defaults.
bool QueryValue(const wxString &szValue, wxString &strValue, bool raw) const
CompilerPrograms m_Programs
virtual AutoDetectResult AutoDetectInstallationDir()
Try to auto-detect the compiler's installation directory.
virtual Compiler * CreateCopy()
Implement this in new compilers, to return a new copy.
const wxString & _(const wxString &string)
ssize_t Read(void *buffer, size_t count)
Abstract base class for compilers.
bool Open(AccessMode mode=Write)
void SetName(const wxString &strKey)