{"action":"closed","issue":{"url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/issues/20","labels_url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/issues/20/comments","events_url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/issues/20/events","html_url":"https://github.com/PSAppDeployToolkit/PSAppDeployToolkit/issues/20","id":72519179,"number":20,"title":"User's display UI is not detected in all cases","user":{"login":"Fatbob1","id":12203344,"avatar_url":"https://avatars.githubusercontent.com/u/12203344?v=3","gravatar_id":"","url":"https://api.github.com/users/Fatbob1","html_url":"https://github.com/Fatbob1","followers_url":"https://api.github.com/users/Fatbob1/followers","following_url":"https://api.github.com/users/Fatbob1/following{/other_user}","gists_url":"https://api.github.com/users/Fatbob1/gists{/gist_id}","starred_url":"https://api.github.com/users/Fatbob1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fatbob1/subscriptions","organizations_url":"https://api.github.com/users/Fatbob1/orgs","repos_url":"https://api.github.com/users/Fatbob1/repos","events_url":"https://api.github.com/users/Fatbob1/events{/privacy}","received_events_url":"https://api.github.com/users/Fatbob1/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/labels/resolved","name":"resolved","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"mmashwani","id":5581235,"avatar_url":"https://avatars.githubusercontent.com/u/5581235?v=3","gravatar_id":"","url":"https://api.github.com/users/mmashwani","html_url":"https://github.com/mmashwani","followers_url":"https://api.github.com/users/mmashwani/followers","following_url":"https://api.github.com/users/mmashwani/following{/other_user}","gists_url":"https://api.github.com/users/mmashwani/gists{/gist_id}","starred_url":"https://api.github.com/users/mmashwani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmashwani/subscriptions","organizations_url":"https://api.github.com/users/mmashwani/orgs","repos_url":"https://api.github.com/users/mmashwani/repos","events_url":"https://api.github.com/users/mmashwani/events{/privacy}","received_events_url":"https://api.github.com/users/mmashwani/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/milestones/4","html_url":"https://github.com/PSAppDeployToolkit/PSAppDeployToolkit/milestones/v3.6.4","labels_url":"https://api.github.com/repos/PSAppDeployToolkit/PSAppDeployToolkit/milestones/4/labels","id":1073609,"number":4,"title":"v3.6.4","description":"Issues and enhancements requests targeted for v3.6.4 of the toolkit.","creator":{"login":"mmashwani","id":5581235,"avatar_url":"https://avatars.githubusercontent.com/u/5581235?v=3","gravatar_id":"","url":"https://api.github.com/users/mmashwani","html_url":"https://github.com/mmashwani","followers_url":"https://api.github.com/users/mmashwani/followers","following_url":"https://api.github.com/users/mmashwani/following{/other_user}","gists_url":"https://api.github.com/users/mmashwani/gists{/gist_id}","starred_url":"https://api.github.com/users/mmashwani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmashwani/subscriptions","organizations_url":"https://api.github.com/users/mmashwani/orgs","repos_url":"https://api.github.com/users/mmashwani/repos","events_url":"https://api.github.com/users/mmashwani/events{/privacy}","received_events_url":"https://api.github.com/users/mmashwani/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":9,"state":"open","created_at":"2015-04-18T22:36:19Z","updated_at":"2015-05-19T20:27:57Z","due_on":"2015-05-19T04:00:00Z","closed_at":null},"comments":7,"created_at":"2015-05-01T20:44:32Z","updated_at":"2015-05-19T20:27:57Z","closed_at":"2015-05-19T20:27:57Z","body":"In 3.6.3 the detection of the language with MUI packs does not work as expected  for Windows 7 x64 :\r\n\r\nIn the AppDeployToolKitMain.Ps1 – [scriptblock]$xmlLoadLocalizedUIMessages\r\n1/ There is a Typo : The code looks for “PrefferedUILanguages” instead of “PreferredUILanguages” (Actual of the value name in registry\r\n2/ None of the 2 possible GPO settings have been considered. These should be considered first since the should have precedence. The block for windows 7 / Vista machines should looks like something like \r\n\r\nPossible resolution : \r\n```\r\n#  Read language for Win Vista/Win 7 machines\r\nIf (-not $HKULanguages) {\r\n\t[string[]]$HKULanguages = Get-RegistryKey -Key 'HKLM\\Software\\Policies\\Control Panel\\Desktop' -Value 'PreferedUILanguages' -SID $RunAsActiveUser.SID\r\n}\r\nIf (-not $HKULanguages) {\r\n\t[string[]]$HKULanguages = Get-RegistryKey -Key 'HKCU\\Software\\Polices\\Control Panel\\Desktop' -Value 'PreferedUILanguages' -SID $RunAsActiveUser.SID\r\n}\r\nIf (-not $HKULanguages) {\r\n\t[string[]]$HKULanguages = Get-RegistryKey -Key 'HKCU\\Control Panel\\Desktop' -Value 'PrefferedUILanguages' -SID $RunAsActiveUser.SID\r\n}\r\nIf (-not $HKULanguages) {\r\n\t[string[]]$HKULanguages = Get-RegistryKey -Key 'HKCU\\Control Panel\\Desktop\\MuiCached' -Value 'MachinePreferredUILanguages' -SID $RunAsActiveUser.SID\r\n}\r\nIf (-not $HKULanguages) {\r\n\t[string[]]$HKULanguages = Get-RegistryKey -Key 'HKCU\\Control Panel\\International' -Value 'LocaleName' -SID $RunAsActiveUser.SID\r\n}\r\n```\r\n"}}