SIL.FieldWorks.FieldWorks.WriteExecutablePathSettingForDevs C# (CSharp) Метод

WriteExecutablePathSettingForDevs() приватный статический Метод

Writes the current executable path to the registry. This is used for external applications to read on developer machines since the RootCodeDir on developer's machines point to distfiles.
private static WriteExecutablePathSettingForDevs ( ) : void
Результат void
		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
FieldWorks