Remove WOW6432Node from 32-bit installer.

This commit is contained in:
Jared Goodwin 2020-01-25 15:07:58 -08:00
parent 4b9b8c449e
commit 7e8c0fcbb5

View File

@ -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*"