SEToolbox.Support.ToolboxUpdater.GetSteamFilePath C# (CSharp) Method

GetSteamFilePath() public static method

Looks for the Steam install location in the Registry, which should return the form: "C:\Program Files (x86)\Steam"
public static GetSteamFilePath ( ) : string
return string
        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;
        }