private static void WriteExecutablePathSettingForDevs()
{
try
{
using (RegistryKey key = Registry.LocalMachine.CreateSubKey(@"SOFTWARE\SIL\FieldWorks\8"))
{
key.SetValue("FwExeDir", Path.GetDirectoryName(Application.ExecutablePath));
}
}
catch
{
// Ignore any errors trying to do this since we just want this for developers
}
}
#endif