<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><span id="result_box" class="" lang="en"><span>Hello,</span><br>
<br>
<span>I tried your package.</span><br>
<span>If I run it from the admin account with the following
script:</span><br>
<i><span>cls</span></i><i><br>
</i><i><span>set ip-scribe = 172.16.0.241</span></i><i><br>
</i><i><span>set SOFTWARE = \\% ip-scribe% \ wpkg \ softwares</span></i><i><br>
</i><i><span>cscript \\% ip-scribe% \ wpkg \ wpkg.js /
synchronize / nonotify / quiet</span></i><i><br>
</i><i><span>pause</span></i><br>
<br>
<span>java9 installs without problems.</span><br>
<br>
<span>But when I try the installation at startup of the PC, wpkg
tries to install, but the installation is not done.</span><br>
<br>
<span>We have in the log the following message:</span><br>
<br>
</span><i>2018-03-19 14:14:17, INFO : Package 'Java Runtime
Environment 9' (JRE9): Not installed (checks failed). Preparing
installation.</i><i><br>
</i><i>2018-03-19 14:14:17, DEBUG : Installation of references
(dependencies) for 'Java Runtime Environment 9' (JRE9)
successfully finished.</i><i><br>
</i><i>2018-03-19 14:14:17, INFO : Installing 'Java Runtime
Environment 9' (JRE9)...</i><i><br>
</i><i>2018-03-19 14:14:17, DEBUG : Reading variables from
hosts[s]</i><i><br>
</i><i>2018-03-19 14:14:17, DEBUG : Reading variables from
profile[s]</i><i><br>
</i><i>2018-03-19 14:14:17, DEBUG : Reading variables from
package 'Java Runtime Environment 9'.</i><i><br>
</i><i>2018-03-19 14:14:17, DEBUG : Got variable 'PKG_VER' of
value '9.0.4'</i><i><br>
</i><i>2018-03-19 14:14:17, DEBUG : Got variable 'PKG_SOURCE' of
value '%SOFTWARE%\java\jre-%PKG_VER%_windows-x64_bin.exe'</i><i><br>
</i><i>2018-03-19 14:14:17, DEBUG : Got variable
'PKG_INSTALL_SWITCH' of value 'STATIC=0 REBOOT=0'</i><i><br>
</i><i>2018-03-19 14:14:17, DEBUG : Got variable 'PKG_DEST' of
value 'INSTALLDIR="%ProgramFiles%\Java\jre9"'</i><i><br>
</i><i>2018-03-19 14:14:17, DEBUG : Setting variable:
'PKG_VER=9.0.4'.</i><i><br>
</i><i>2018-03-19 14:14:17, DEBUG : Setting variable:
'PKG_SOURCE=%SOFTWARE%\java\jre-%PKG_VER%_windows-x64_bin.exe'.</i><i><br>
</i><i>2018-03-19 14:14:17, DEBUG : Setting variable:
'PKG_INSTALL_SWITCH=STATIC=0 REBOOT=0'.</i><i><br>
</i><i>2018-03-19 14:14:17, DEBUG : Setting variable:
'PKG_DEST=INSTALLDIR="%ProgramFiles%\Java\jre9"'.</i><i><br>
</i><i>2018-03-19 14:14:17, DEBUG : Install type: install</i><i><br>
</i><i>2018-03-19 14:14:17, DEBUG : Found inclusion for command
type remove.</i><i><br>
</i><i>2018-03-19 14:14:17, DEBUG : Fetched 3 install
command(s).</i><i><br>
</i><i>2018-03-19 14:14:17, DEBUG : Executing command:
'%ComSpec% /c net stop JavaQuickStarterService'
('C:\Windows\system32\cmd.exe /c net stop
JavaQuickStarterService').</i><i><br>
</i><i>2018-03-19 14:14:17, INFO : Command '%ComSpec% /c net
stop JavaQuickStarterService' returned exit code [2]. This exit
code indicates success.</i><i><br>
</i><i>2018-03-19 14:14:17, INFO : Command in installation of
Java Runtime Environment 9 returned exit code [2]. This exit
code indicates success.</i><i><br>
</i><i>2018-03-19 14:14:17, DEBUG : Executing command:
'%ComSpec% /c wmic product where "Name like 'Java 9%'" call
Uninstall >%TMP%\JRE9_remove.log 2>%TMP%\JRE9_remove.err'
('C:\Windows\system32\cmd.exe /c wmic product where "Name like
'Java 9%'" call Uninstall >C:\Windows\TEMP\JRE9_remove.log
2>C:\Windows\TEMP\JRE9_remove.err').</i><i><br>
</i><i>2018-03-19 14:16:19, DEBUG : Command in installation of
Java Runtime Environment 9 returned exit code [0]. Success.</i><i><br>
</i><i>2018-03-19 14:16:19, DEBUG : Executing command:
'"%PKG_SOURCE%" /s %PKG_DEST% %PKG_INSTALL_SWITCH% /L
%TMP%\JRE9_AMD64.log'
('"\\172.16.0.241\wpkg\softwares\java\jre-9.0.4_windows-x64_bin.exe"
/s INSTALLDIR="C:\Program Files\Java\jre9" STATIC=0 REBOOT=0 /L
C:\Windows\TEMP\JRE9_AMD64.log').</i><i><br>
</i><i>2018-03-19 14:17:01, ERROR : Could not process (install)
package 'Java Runtime Environment 9' (JRE9):|Exit code returned
non-successful value (1603) on command '"%PKG_SOURCE%" /s
%PKG_DEST% %PKG_INSTALL_SWITCH% /L %TMP%\JRE9_AMD64.log'.</i><i><br>
</i><i>2018-03-19 14:17:01, DEBUG : Cleaning up temporary
downloaded files</i><i><br>
</i><i>2018-03-19 14:17:01, DEBUG : Restoring previous
environment.
</i></p>
<p><br>
</p>
<p><span id="result_box" class="" lang="en"><span class="">Do you
have any idea where the problem would come from?</span><br>
<br>
<span class="">Thanks for your help,</span></span></p>
<p><span id="result_box" class="" lang="en"><span class=""><br>
</span></span></p>
<p><span id="result_box" class="" lang="en"><span class="">Yours
sincerely,</span></span></p>
<p><span id="result_box" class="" lang="en"><span class=""><br>
</span></span></p>
<p><span id="result_box" class="" lang="en"><span class="">Raphaël
Brocq<br>
</span></span></p>
<p><br>
</p>
<p><br>
</p>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">Le 17/03/2018 à 19:07, Stefan Pendl a
écrit :<br>
</div>
<blockquote type="cite"
cite="mid:4be5e55f-7c52-e436-a3d3-9b6e7e7f8a80@gmail.com">Am
17.03.2018 um 15:23 schrieb Raphael Brocq:
<br>
<blockquote type="cite">Hi,
<br>
<br>
I'm trying to make the wpkg package for Java 9. I don't arrive
it.
<br>
I have recovered the file msi.
<br>
</blockquote>
<br>
<br>
I am not extracting the MSI, since I don't add an additional step
that is not necessary.
<br>
<br>
<!-- code start (watch for line wraps) -->
<br>
<package id="JRE9" name="Java Runtime Environment 9"
revision="%PKG_VER%" reboot="false" priority="10"
<br>
precheck-upgrade="always" precheck-install="always"
precheck-remove="always">
<br>
<br>
<variable name="PKG_VER" value="9.0.4" />
<br>
<variable name="PKG_SOURCE"
value="%SOFTWARE%\Java\jre-%PKG_VER%_windows-x64_bin.exe"/>
<br>
<variable name="PKG_INSTALL_SWITCH" value="STATIC=0
REBOOT=0"/>
<br>
<variable name="PKG_DEST"
value="INSTALLDIR="%ProgramFiles%\Java\jre9""/>
<br>
<br>
<check type="uninstall" condition="versiongreaterorequal"
path="Java 9.* \(64-bit\)" value="%PKG_VER%" />
<br>
<br>
<commands>
<br>
<command type="install" include="remove" />
<br>
<command type="install" cmd='"%PKG_SOURCE%" /s
%PKG_DEST% %PKG_INSTALL_SWITCH% /L %TMP%\JRE9_AMD64.log' />
<br>
<br>
<command type="upgrade" include="install" />
<br>
<br>
<!-- stop quick start service -->
<br>
<command type="remove" cmd="%ComSpec% /c net stop
JavaQuickStarterService">
<br>
<exit code="2" />
<br>
</command>
<br>
<command type="remove"
<br>
cmd="%ComSpec% /c wmic product where "Name
like 'Java 9%'" call Uninstall
>%TMP%\JRE9_remove.log 2>%TMP%\JRE9_remove.err"
/>
<br>
</commands>
<br>
</package>
<br>
<!-- code end -->
<br>
<br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Signature Dane</title>
<style type="text/css">
body{
background-color:#FFFFFF;
}
.logo{
display: inline-block;
vertical-align: top;
}
.texte{
display: inline-block;
color: #666666;
font-size: 12px;
}
.nom{
color:#00809D;
font-size:14px;
}
hr{
color: #00809D;
}
</style>
<div class="logo"> <a href="http://www.ac-lyon.fr/"
target="_blank"> <img
src="https://dane.ac-lyon.fr/spip/squelettes/images/logoacademie31.png"
alt="" width="130" height="189"> </a> </div>
<div class="texte"> <span class="nom">Raphaël Brocq</span><br>
Responsable des Systèmes Installés<br>
<br>
Rectorat<br>
Délégation Académique au Numérique Éducatif<br>
92 rue de Marseille - BP 7227 - 69007 Lyon cedex 07<br>
Tél : 04 72 80 64 68
<hr> Locaux : 47 rue Philippe de Lassalle - 69004 Lyon<br>
<a href="http://dane.ac-lyon.fr/">http://dane.ac-lyon.fr/</a> <br>
<img
src="https://dane.ac-lyon.fr/spip/squelettes/images/bandeau_bas_signature.png"
alt="" width="322" height="59"> </div>
</div>
</body>
</html>