I currently have this code below in my powershell script that installs for all versions of IE under 11, so it would rule out installing for windows 8.
# Get the Internet Explorer version $ieVersion = Get-Item "HKLM:Software\Microsoft\Internet Explorer" -ErrorAction SilentlyContinue | Get-ItemProperty | Select "svcVersion" -ExpandProperty "svcVersion" $ieSubstringPos = $ieVersion.IndexOf(".") [int]$ieShortVersion = $ieVersion.Substring(0, $ieSubstringPos) ## <Perform Installation tasks here> If ($ieShortVersion -lt 11) { Execute-MSI -Action Install -Path "install_flash_player_18_active_x.msi" -Parameters "/qn" } Now we are upgrading to IE11 in our environment so that will no longer work. Is there a way I can do the same thing but detect for windows 7 x64 and x32