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

New Post: Java x64 installation

$
0
0
Hi,

Great, thanks for the reply, it's set me on the right track. A couple of tweaks got it working.
    #Remove old versions of 32 bit Java 7
    if ((Get-WmiObject -Class Win32_OperatingSystem).OSArchitecture -eq '64-bit') {            
        $architecture = "64-Bit" 
        $javaInstalls = Get-InstalledApplication "Java 7 Update" 


        Foreach ($javaInstall in $javaInstalls) {
            $javaInstallLocation = $javaInstall | Select InstallLocation -Expand InstallLocation
            $javaProductCode = $javaInstall | Select ProductCode -Expand ProductCode       
           
            If ($javaInstallLocation -match "x86") {               
                Execute-MSI -Action Uninstall -Path $javaProductCode         
            }

        }           
     } else  {            
        $architecture = "32-Bit" 
        Remove-MSIApplications "Java 7 Update"           
     }  

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>