public static string GetRootDirectoryPath()
{
String directoryPath;
RegistryKey regkey = Registry.LocalMachine.OpenSubKey(FT_REG_ROOT);
if (regkey != null)
directoryPath = (string) regkey.GetValue(FT_ROOT_PATH_KEY);
else
{
//TRY 64 bit REG path
regkey = Registry.LocalMachine.OpenSubKey(FT_REG_ROOT_64_BIT);
if (regkey != null)
directoryPath = (string) regkey.GetValue(FT_ROOT_PATH_KEY);
else
directoryPath = GetRootFromEnvironment();
}
return directoryPath;
}