public static string GetSteamFilePath()
{
RegistryKey key;
if (Environment.Is64BitProcess)
key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Wow6432Node\Valve\Steam", false);
else
key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Valve\Steam", false);
if (key != null)
{
return (string)key.GetValue("InstallPath");
}
return null;
}