Quantcast
Channel: psappdeploytoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1769

New Post: Different installation script win7/win8.1

$
0
0
Hey,

Yes you can. We actually did something already for Flash Player. So given that both Chrome and Internet Explorer versions newer than 10, have Flash Player built in...
#  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)

#  Install Flash Player ActiveX Control for IE versions prior to IE10 
If ($ieShortVersion -lt 10) { 
    Execute-MSI -Action Install -Path "install_flash_player_14_active_x.msi"
}

#  Install Flash Player Plugin if Firefox is installed
If(Get-InstalledApplication -Name "Mozilla Firefox" -eq $true) {
    Execute-MSI -Action Install -Path "install_flash_player_14_plugin.msi"
}
That'll work on every OS version :)

Dan

Viewing all articles
Browse latest Browse all 1769

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>