Start-ChocolateyProcessAsAdmin "/qn /norestart /X$32" -exeToRun "msiexec.Java is now a licenced product for use with commercial applications, including CUFS. Write-Warning "Uninstalling JRE version $Version 32bit" If ($packageParameters -match $match_pattern ) -ErrorAction Silentl圜ontinue # Now parse the packageParameters using good old regular expression $packageParameters = $env:chocolateyPackageParameters $arguments = Now we can use the $env:chocolateyPackageParameters inside the Chocolatey package This package can install 32-bit, 64-bit, or both versions. X86 installs of Windows you can expect to see an error while reading the registry, but the script will still function normally. This package no longer manually adds an environment variable. You then need to tell Chocolatey to save that parameter for future upgrades by running choco feature enable -n=useRememberedArgumentsForUpgrades The switch to exclude 32-bit is /exclude:32 and to exclude 64-bit /exclude:64įor example: choco install jre8 -PackageParameters "/exclude:64" -y If you wish to only install the 32-bit version of Java use the /exclude parameter. This package installs the Java version offered at. Please note you now need a Java License from Oracle to use unless installed for Personal Use and Development Use. It's also integral to the intranet applications and other e-business solutions that are the foundation of corporate computing. Java allows you to play online games, chat with people around the world, calculate your mortgage interest, and view images in 3D, just to name a few.
Your use of the packages on this site means you understand they are not supported or guaranteed in any way. With any edition of Chocolatey (including the free open source edition), you can host your own packages and cache or internalize existing community packages. Packages offered here are subject to distribution rights, which means they may need to reach out further to the internet to the official locations to download files at runtime.įortunately, distribution rights do not apply for internal use. If you are an organization using Chocolatey, we want your experience to be fully reliable.ĭue to the nature of this publicly offered repository, reliability cannot be guaranteed.