#9 YAP: Find TeXnicCenter 2.0

None
closed
None
4
2013-10-14
2013-06-30
Tino Weinkauf
No

Hallo Christian,

The new TeXnicCenter (2.0 and upwards) can be found in the registry almost as easy as the old one. You only need to change two lines. See below for the updated LocateTeXnicCenter() function.

All the best from Saarbruecken,

Tino Weinkauf.

File: InverseSearchOptionsPage.cpp

bool
LocateTeXnicCenter (/[out]/ PathName & tc)
{
PathName path;
if (! ReadPath(HKEY_LOCAL_MACHINE, L"SOFTWARE\ToolsCenter\TeXnicCenterNT", L"AppPath", path))
{
return (false);
}
path += "TeXnicCenter.exe";;
if (! File::Exists(path))
{
return (false);
}
tc = path;
return (true);
}

Discussion

    • status: open --> closed
    • assigned_to: Christian Schenk
    • Group: -->
     
  • Thank you for the patch. I have applied it.