I want to get the registry value with the following piece of code
object key_10 = Registry.GetValue(@"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Common\InstallRoot", "Path", null);
Generally it works but when I run it on Windows Server 2012 R2 Terminal I get a null value. I have local administrator rights. The value exists in the registry (checked with regedit.exe) .NET Framework is 4.5