From a1100ec6f03d6ed44a67a245a27651da6661052a Mon Sep 17 00:00:00 2001 From: Jared Goodwin Date: Sat, 25 Jan 2020 15:07:58 -0800 Subject: [PATCH] Remove WOW6432Node from 32-bit installer. --- Server/wwwroot/Downloads/Install-Win10-x86.ps1 | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Server/wwwroot/Downloads/Install-Win10-x86.ps1 b/Server/wwwroot/Downloads/Install-Win10-x86.ps1 index a52afd80..f80b069b 100644 --- a/Server/wwwroot/Downloads/Install-Win10-x86.ps1 +++ b/Server/wwwroot/Downloads/Install-Win10-x86.ps1 @@ -126,13 +126,7 @@ function Install-Remotely { } function Install-DesktopRuntime() { - $UninstallKeys = New-Object System.Collections.ArrayList - Get-ChildItem -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" | ForEach-Object { - $UninstallKeys.Add($_) | Out-Null - } - Get-ChildItem -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\" | ForEach-Object { - $UninstallKeys.Add($_) | Out-Null - } + $UninstallKeys = (Get-ChildItem -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\") $RuntimeRegKey = $UninstallKeys | Where-Object { $_.GetValue("DisplayName") -like "Microsoft Windows Desktop Runtime - 3.1.1*"