Difference between revisions of "OpenJDK"
From WPKG | Open Source Software Deployment and Distribution
m |
(Add IcedTea config) |
||
Line 1: | Line 1: | ||
− | + | Alternative Java from AdoptOpenJDK. Oracle's free, GPL-licensed, production-ready JDK. | |
− | + | == Config for JRE 11 == | |
+ | Download it [https://adoptopenjdk.net/index.html?variant=openjdk11&jvmVariant=hotspot here]. | ||
<source lang="xml"> | <source lang="xml"> | ||
<package | <package | ||
Line 16: | Line 17: | ||
<variable name="PKG_REMOVE_SWITCH" value="/qn /norestart" /> | <variable name="PKG_REMOVE_SWITCH" value="/qn /norestart" /> | ||
<variable name="PKG_DESTINATION" value="%PROGRAMFILES%\AdoptOpenJDK\jre-%PKG_VERSION%-hotspot" /> | <variable name="PKG_DESTINATION" value="%PROGRAMFILES%\AdoptOpenJDK\jre-%PKG_VERSION%-hotspot" /> | ||
− | |||
− | |||
<check type="logical" condition="and"> | <check type="logical" condition="and"> | ||
Line 32: | Line 31: | ||
<upgrade include="install" /> | <upgrade include="install" /> | ||
− | <remove cmd=' | + | <remove cmd='wmic product where "name like 'AdoptOpenJDK JRE with Hotspot %% (x86)'" call uninstall' /> |
− | < | + | <remove cmd='wmic product where "name like 'AdoptOpenJDK JRE with Hotspot %% (x64)'" call uninstall' architecture="x64" /> |
+ | </package> | ||
+ | </source> | ||
+ | |||
+ | == Config for IcedTea == | ||
+ | Download it [https://adoptopenjdk.net/icedtea-web.html?variant=openjdk11&jvmVariant=hotspot here]. | ||
+ | <source lang="xml"> | ||
+ | <package | ||
+ | id="icedteaweb" | ||
+ | name="IcedTea-Web" | ||
+ | revision="%PKG_VERSION%" | ||
+ | reboot="false" | ||
+ | priority="20"> | ||
+ | |||
+ | <variable name="PKG_VERSION" value="1.8.3.0" /> | ||
+ | <variable name="PKG_SOURCE" value="%SOFTWARE%\Java\IcedTea"/> | ||
+ | <variable name="PKG_NAME" value="icedtea-web-%PKG_VERSION%.msi" /> | ||
+ | <variable name="PKG_INSTALL_SWITCH" value="/qn /norestart" /> | ||
+ | <variable name="PKG_REMOVE_SWITCH" value="/qn /norestart" /> | ||
+ | |||
+ | <check type="uninstall" condition="versiongreaterorequal" path="IcedTea-Web .+" value="%PKG_VERSION%" /> | ||
+ | |||
+ | <install cmd='msiexec /i "%PKG_SOURCE%\%PKG_NAME%" %PKG_INSTALL_SWITCH%' /> | ||
+ | |||
+ | <downgrade include="remove" /> | ||
+ | <downgrade include="install" /> | ||
+ | |||
+ | <upgrade include="remove" /> | ||
+ | <upgrade include="install" /> | ||
+ | |||
+ | <remove cmd='wmic product where "name like 'IcedTea-Web %%'" call uninstall' /> | ||
</package> | </package> | ||
</source> | </source> | ||
[[category:Silent Installers]] | [[category:Silent Installers]] |
Latest revision as of 22:03, 11 May 2020
Alternative Java from AdoptOpenJDK. Oracle's free, GPL-licensed, production-ready JDK.
Config for JRE 11
Download it here.
<package
id="openjre"
name="OpenJDK JRE"
revision="%PKG_VERSION%"
reboot="false"
priority="20">
<variable name="PKG_VERSION" value="11.0.7.10" />
<variable name="PKG_SOURCE" value="%SOFTWARE%\Java\OpenJDK"/>
<variable name="PKG_NAME" value="OpenJDK11U-jre_x86-32_windows_hotspot_%PKG_VERSION%.msi" />
<variable name="PKG_NAME_64" value="OpenJDK11U-jre_x64_windows_hotspot_%PKG_VERSION%.msi" />
<variable name="PKG_INSTALL_SWITCH" value="/qn /norestart ADDLOCAL=FeatureMain,FeatureEnvironment,FeatureJavaHome,FeatureJarFileRunWith,FeatureOracleJavaSoft" />
<variable name="PKG_REMOVE_SWITCH" value="/qn /norestart" />
<variable name="PKG_DESTINATION" value="%PROGRAMFILES%\AdoptOpenJDK\jre-%PKG_VERSION%-hotspot" />
<check type="logical" condition="and">
<check type="uninstall" condition="exists" path="AdoptOpenJDK JRE with Hotspot %PKG_VERSION% (x86)" />
<check type="uninstall" condition="exists" path="AdoptOpenJDK JRE with Hotspot %PKG_VERSION% (x64)" architecture="x64" />
</check>
<install cmd='msiexec /i "%PKG_SOURCE%\%PKG_NAME%" %PKG_INSTALL_SWITCH%' />
<install cmd='msiexec /i "%PKG_SOURCE%\%PKG_NAME_64%" %PKG_INSTALL_SWITCH%' architecture="x64" />
<downgrade include="remove" />
<downgrade include="install" />
<upgrade include="remove" />
<upgrade include="install" />
<remove cmd='wmic product where "name like 'AdoptOpenJDK JRE with Hotspot %% (x86)'" call uninstall' />
<remove cmd='wmic product where "name like 'AdoptOpenJDK JRE with Hotspot %% (x64)'" call uninstall' architecture="x64" />
</package>
Config for IcedTea
Download it here.
<package
id="icedteaweb"
name="IcedTea-Web"
revision="%PKG_VERSION%"
reboot="false"
priority="20">
<variable name="PKG_VERSION" value="1.8.3.0" />
<variable name="PKG_SOURCE" value="%SOFTWARE%\Java\IcedTea"/>
<variable name="PKG_NAME" value="icedtea-web-%PKG_VERSION%.msi" />
<variable name="PKG_INSTALL_SWITCH" value="/qn /norestart" />
<variable name="PKG_REMOVE_SWITCH" value="/qn /norestart" />
<check type="uninstall" condition="versiongreaterorequal" path="IcedTea-Web .+" value="%PKG_VERSION%" />
<install cmd='msiexec /i "%PKG_SOURCE%\%PKG_NAME%" %PKG_INSTALL_SWITCH%' />
<downgrade include="remove" />
<downgrade include="install" />
<upgrade include="remove" />
<upgrade include="install" />
<remove cmd='wmic product where "name like 'IcedTea-Web %%'" call uninstall' />
</package>