Discussion:
[wpkg-users] Java 9
Raphael Brocq
2018-03-17 14:23:27 UTC
Permalink
Hi,

I'm trying to make the wpkg package for Java 9. I don't arrive it.
I have recovered the file msi.

Does the package exist?

thank you very much for your help,

Yours sincerely,

Raphaël Brocq

Paquets WPKG stables de la DANE de Lyon
<https://forum-dane.ac-lyon.fr/forum/viewforum.php?f=44>
--
Signature Dane
<http://www.ac-lyon.fr/>
Raphaël Brocq
Responsable des SystÚmes Installés

Rectorat
Délégation Académique au Numérique Éducatif
92 rue de Marseille - BP 7227 - 69007 Lyon cedex 07
Tél : 04 72 80 64 68
------------------------------------------------------------------------
Locaux : 47 rue Philippe de Lassalle - 69004 Lyon
http://dane.ac-lyon.fr/
Stefan Pendl
2018-03-17 18:07:36 UTC
Permalink
Post by 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=&quot;%ProgramFiles%\Java\jre9&quot;"/>

<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 &quot;Name like 'Java 9%'&quot;
call Uninstall &gt;%TMP%\JRE9_remove.log 2&gt;%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?
---------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
Raphael Brocq
2018-03-19 10:01:10 UTC
Permalink
Hi,


Thank you. I will test in the week. And will keep you informed.
thanks again

Raphaël Brocq
Post by Stefan Pendl
Post by 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=&quot;%ProgramFiles%\Java\jre9&quot;"/>
    <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 &quot;Name like 'Java
    </commands>
</package>
<!-- code end -->
--
Signature Dane
<http://www.ac-lyon.fr/>
Raphaël Brocq
Responsable des SystÚmes Installés

Rectorat
Délégation Académique au Numérique Éducatif
92 rue de Marseille - BP 7227 - 69007 Lyon cedex 07
Tél : 04 72 80 64 68
------------------------------------------------------------------------
Locaux : 47 rue Philippe de Lassalle - 69004 Lyon
http://dane.ac-lyon.fr/
Raphael Brocq
2018-03-28 06:50:43 UTC
Permalink
Hello,

I tried your package.
If I run it from the admin account with the following script:
/cls//
//set ip-scribe = 172.16.0.241//
//set SOFTWARE = \\% ip-scribe% \ wpkg \ softwares//
//cscript \\% ip-scribe% \ wpkg \ wpkg.js / synchronize / nonotify / quiet//
//pause/

java9 installs without problems.

But when I try the installation at startup of the PC, wpkg tries to
install, but the installation is not done.

We have in the log the following message:

/2018-03-19 14:14:17, INFO    : Package 'Java Runtime Environment 9'
(JRE9): Not installed (checks failed). Preparing installation.//
//2018-03-19 14:14:17, DEBUG   : Installation of references
(dependencies) for 'Java Runtime Environment 9' (JRE9) successfully
finished.//
//2018-03-19 14:14:17, INFO    : Installing 'Java Runtime Environment 9'
(JRE9)...//
//2018-03-19 14:14:17, DEBUG   : Reading variables from hosts[s]//
//2018-03-19 14:14:17, DEBUG   : Reading variables from profile[s]//
//2018-03-19 14:14:17, DEBUG   : Reading variables from package 'Java
Runtime Environment 9'.//
//2018-03-19 14:14:17, DEBUG   : Got variable 'PKG_VER' of value '9.0.4'//
//2018-03-19 14:14:17, DEBUG   : Got variable 'PKG_SOURCE' of value
'%SOFTWARE%\java\jre-%PKG_VER%_windows-x64_bin.exe'//
//2018-03-19 14:14:17, DEBUG   : Got variable 'PKG_INSTALL_SWITCH' of
value 'STATIC=0 REBOOT=0'//
//2018-03-19 14:14:17, DEBUG   : Got variable 'PKG_DEST' of value
'INSTALLDIR="%ProgramFiles%\Java\jre9"'//
//2018-03-19 14:14:17, DEBUG   : Setting variable: 'PKG_VER=9.0.4'.//
//2018-03-19 14:14:17, DEBUG   : Setting variable:
'PKG_SOURCE=%SOFTWARE%\java\jre-%PKG_VER%_windows-x64_bin.exe'.//
//2018-03-19 14:14:17, DEBUG   : Setting variable:
'PKG_INSTALL_SWITCH=STATIC=0 REBOOT=0'.//
//2018-03-19 14:14:17, DEBUG   : Setting variable:
'PKG_DEST=INSTALLDIR="%ProgramFiles%\Java\jre9"'.//
//2018-03-19 14:14:17, DEBUG   : Install type: install//
//2018-03-19 14:14:17, DEBUG   : Found inclusion for command type remove.//
//2018-03-19 14:14:17, DEBUG   : Fetched 3 install command(s).//
//2018-03-19 14:14:17, DEBUG   : Executing command: '%ComSpec% /c net
stop JavaQuickStarterService' ('C:\Windows\system32\cmd.exe /c net stop
JavaQuickStarterService').//
//2018-03-19 14:14:17, INFO    : Command '%ComSpec% /c net stop
JavaQuickStarterService' returned  exit code [2]. This exit code
indicates success.//
//2018-03-19 14:14:17, INFO    : Command in installation of Java Runtime
Environment 9 returned exit code [2]. This exit code indicates success.//
//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').//
//2018-03-19 14:16:19, DEBUG   : Command in installation of Java Runtime
Environment 9 returned exit code [0]. Success.//
//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').//
//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'.//
//2018-03-19 14:17:01, DEBUG   : Cleaning up temporary downloaded files//
//2018-03-19 14:17:01, DEBUG   : Restoring previous environment. /


Do you have any idea where the problem would come from?

Thanks for your help,


Yours sincerely,


Raphaël Brocq
Post by 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=&quot;%ProgramFiles%\Java\jre9&quot;"/>
    <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 &quot;Name like 'Java
    </commands>
</package>
<!-- code end -->
--
Signature Dane
<http://www.ac-lyon.fr/>
Raphaël Brocq
Responsable des SystÚmes Installés

Rectorat
Délégation Académique au Numérique Éducatif
92 rue de Marseille - BP 7227 - 69007 Lyon cedex 07
Tél : 04 72 80 64 68
------------------------------------------------------------------------
Locaux : 47 rue Philippe de Lassalle - 69004 Lyon
http://dane.ac-lyon.fr/
Andreas Schamanek
2018-03-28 07:06:06 UTC
Permalink
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').
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 haven't tried Java 9 yet, but I have seen error 1603 "Java Update
did not complete" before. The official docu
https://java.com/en/download/help/error_1603.xml says "The root cause
of this error is under investigation" (it still does after at 3 years)
:-|

After reading
http://www.adminarsenal.com/admin-arsenal-blog/beat-java-error-1603-when-deploying
I noted: "In short: reboot + try again". So, that's my advice.
--
-- Andreas

:-)

---------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
Marco Gaiarin
2018-03-28 07:25:34 UTC
Permalink
Mandi! Raphael Brocq
In chel di` si favelave...
Post by Raphael Brocq
Do you have any idea where the problem would come from?
I've never worked with java9, still, but for java 8 i've found that
installer ''pretend'' to have the (also empty) file
"%ProgramData%\Oracle\Java\java.settings.cfg", so my installation
recipe is:

<install cmd='%COMSPEC% /c if not exist "%ProgramData%\Oracle\Java" md "%ProgramData%\Oracle\Java"' />
<install cmd='%COMSPEC% /c if not exist "%ProgramData%\Oracle\Java\java.settings.cfg" type nul > "%ProgramData%\Oracle\Java\java.settings.cfg"' />
<install cmd='"%SOFTWARE%\WPKG\jre-8u161-windows-x64.exe" /s STATIC=0 AUTO_UPDATE=0 WEB_JAVA=0 REBOOT=0' >
<exit code="3010" reboot="postponed" />
</install>
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797

Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
---------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
Raphael Brocq
2018-03-28 10:16:40 UTC
Permalink
Hello,

Thank you for your help, but unfortunately the result is the same >:o.
There is something stalling at startup, but I really do not see what.

Yours sincerely

Raphaël Brocq
Post by Marco Gaiarin
Mandi! Raphael Brocq
In chel di` si favelave...
Post by Raphael Brocq
Do you have any idea where the problem would come from?
I've never worked with java9, still, but for java 8 i've found that
installer ''pretend'' to have the (also empty) file
"%ProgramData%\Oracle\Java\java.settings.cfg", so my installation
<install cmd='%COMSPEC% /c if not exist "%ProgramData%\Oracle\Java" md "%ProgramData%\Oracle\Java"' />
<install cmd='%COMSPEC% /c if not exist "%ProgramData%\Oracle\Java\java.settings.cfg" type nul > "%ProgramData%\Oracle\Java\java.settings.cfg"' />
<install cmd='"%SOFTWARE%\WPKG\jre-8u161-windows-x64.exe" /s STATIC=0 AUTO_UPDATE=0 WEB_JAVA=0 REBOOT=0' >
<exit code="3010" reboot="postponed" />
</install>
--
Signature Dane
<http://www.ac-lyon.fr/>
Raphaël Brocq
Responsable des SystÚmes Installés

Rectorat
Délégation Académique au Numérique Éducatif
92 rue de Marseille - BP 7227 - 69007 Lyon cedex 07
Tél : 04 72 80 64 68
------------------------------------------------------------------------
Locaux : 47 rue Philippe de Lassalle - 69004 Lyon
http://dane.ac-lyon.fr/
Stefan Pendl
2018-03-28 21:46:54 UTC
Permalink
Post by Raphael Brocq
Hello,
Thank you for your help, but unfortunately the result is the same >:o.
There is something stalling at startup, but I really do not see what.
Error code 1603 means, that a file was in use by a different process
mostly javaw.exe or java.exe
See
https://msdn.microsoft.com/en-us/library/windows/desktop/aa372835(v=vs.85).aspx
or http://www.msierrors.com/tag/msiexec-return-codes/ for further
information.

Since Oracle has acquired Java the install package must be executed
twice in a row to install successful.
There was no trouble at all before Oracle.
--
*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?
---------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
Loading...