[wpkg-users] Java 9

Stefan Pendl stefan.pendl.71 at gmail.com
Sat Mar 17 19:07:36 CET 2018


Am 17.03.2018 um 15:23 schrieb Raphael Brocq:
> Hi,
> 
> I'm trying to make the wpkg package for Java 9. I don't arrive it.
> I have recovered the file msi.


I am not extracting the MSI, since I don't add an additional step that 
is not necessary.

<!-- code start (watch for line wraps) -->
<package id="JRE9" name="Java Runtime Environment 9" 
revision="%PKG_VER%" reboot="false" priority="10"
		precheck-upgrade="always" precheck-install="always" 
precheck-remove="always">

	<variable name="PKG_VER"            value="9.0.4" />
	<variable name="PKG_SOURCE" 
value="%SOFTWARE%\Java\jre-%PKG_VER%_windows-x64_bin.exe"/>
	<variable name="PKG_INSTALL_SWITCH" value="STATIC=0 REBOOT=0"/>
	<variable name="PKG_DEST" 
value="INSTALLDIR="%ProgramFiles%\Java\jre9""/>

	<check type="uninstall" condition="versiongreaterorequal" path="Java 
9.* \(64-bit\)" value="%PKG_VER%" />

	<commands>
		<command type="install" include="remove" />
		<command type="install" cmd='"%PKG_SOURCE%" /s %PKG_DEST% 
%PKG_INSTALL_SWITCH% /L %TMP%\JRE9_AMD64.log' />

		<command type="upgrade" include="install" />

		<!-- stop quick start service -->
		<command type="remove" cmd="%ComSpec% /c net stop 
JavaQuickStarterService">
			<exit code="2" />
		</command>
		<command type="remove"
			cmd="%ComSpec% /c wmic product where "Name like 'Java 9%'" 
call Uninstall >%TMP%\JRE9_remove.log 2>%TMP%\JRE9_remove.err" />
	</commands>
</package>
<!-- code end -->

-- 
*Stefan P.*

Top-posting:
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?


More information about the wpkg-users mailing list