[wpkg-users] Java 9

Raphael Brocq raphael-jacky-r.brocq at ac-lyon.fr
Wed Mar 28 08:50:43 CEST 2018


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





Le 17/03/2018 à 19:07, Stefan Pendl a écrit :
> 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 -->
>

-- 
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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20180328/ed9978ba/attachment.html>


More information about the wpkg-users mailing list