74
edits
Changes
OpenJDK
,Add IcedTea config
<source lang="xml">
<package
<variable name="PKG_REMOVE_SWITCH" value="/qn /norestart" />
<variable name="PKG_DESTINATION" value="%PROGRAMFILES%\AdoptOpenJDK\jre-%PKG_VERSION%-hotspot" />
<check type="logical" condition="and">
<upgrade include="install" />
<remove cmd='msiexec wmic product where "name like 'AdoptOpenJDK JRE with Hotspot %% (x86)'" call uninstall' /X > <remove cmd='wmic product where "name like 'AdoptOpenJDK JRE with Hotspot %PKG_MSI_CODE_X86% (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%" /> <remove install cmd='msiexec /X i "%PKG_MSI_CODE_X64PKG_SOURCE% \%PKG_REMOVE_SWITCHPKG_NAME%" %PKG_INSTALL_SWITCH%' architecture/> <downgrade include="x64remove" /> <downgrade include="install" /> <upgrade include="remove" /> <upgrade include="install" /> <remove cmd='wmic product where "name like 'IcedTea-Web %%'" call uninstall' />
</package>
</source>
[[category:Silent Installers]]