This line in the dpi property of MaterialUIScaler
m_Dpi = Mathf.Round(1.445f * float.Parse(Microsoft.Win32.Registry.LocalMachine.OpenSubKey("SOFTWARE").OpenSubKey("Microsoft").OpenSubKey("Windows NT").OpenSubKey("CurrentVersion").OpenSubKey("FontDPI").GetValue("LogPixels").ToString()));
causes the following Error:
Player export failed. Reason: UnauthorizedAccessException: Access to the path "/UNITY_PATH/Unity/Unity-2017_2_0f3/Unity.app/Contents/MonoBleedingEdge/etc/mono/registry" is denied.
for the Unity Cloud Build. We see a similar issue when Building for Windows on macOS machines.
Do you know a clean solution for that?