Bug 241892. Trying loading gtk-sharp from the GAC for detection.

This commit is contained in:
Jim Norman 2007-04-02 21:19:30 +00:00
parent 58c4621c97
commit 2e19101343

View File

@ -55,8 +55,26 @@ namespace launcher
private static bool IsGTKSharpInstalled()
{
// try loading the gtk-sharp assembly
try
{
System.Reflection.Assembly assm = System.Reflection.Assembly.Load("gtk-sharp, Version=2.8.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f");
if (assm != null)
{
System.Diagnostics.Trace.WriteLine("Found gtk-sharp in the GAC");
return true;
}
}
catch (Exception e)
{
}
// check the registry for the existence of GTK
string sGTK = ReadRegKey(Registry.LocalMachine, "Software\\GTK\\2.0", "Path");
if (sGTK != null)
{
System.Diagnostics.Trace.WriteLine("GTK Path is: " + sGTK);