[wpkg-users] Java 8 on Win64 - the saga continues...
Frank Morawietz
nestolea at gmail.com
Mon Feb 22 21:21:01 CET 2016
Hello Marco,
thanks for all the successful research you are doing!
So you got to a point where you can run a working installation with the
.EXE file?
I found the java.settings.cfg you described in my installation, too.
But I can't reconstruct whether it was already there when my
installation tests failed or whether it got created by an installation
that was finally working.
Maybe, when the next Java update threatens us, I will give this a try.
At least this could save the extra effort of manually extracting the
.MSI file...
Thanks again for sharing your insights!
Frank
Marco Schmidt schrieb:
> Sorry for mailing that much, but I hope you see it as ham, not as spam :-)
>
> The good thing is, Oracle drives me crazy.
> The bad thing, I found the working solution with the jre...exe.
>
> The jre...exe installs as user system depending on the options. Seems
> the only option that is allowed is: REMOVEOUTOFDATEJRES=1
> Any other option stops the installer. Unfortunately it not even tells
> you why, no logfile, nothing.
> (I assume this option is ignored anyway, because it is default as
> described by Frank Morawietz)
>
> Besides this, it works with any option, if there is a valid
> java.settings.cfg (e.g. from an old installation). Seems that the
> command line options are ignored in this case.
> %ALLUSERSPROFILE%\Oracle\Java\java.settings.cfg
>
> If the options are needed, this file could be added before or at least
> after an installation.
>
> So finally my install command with the jre...exe is:
> <install cmd='"%SOFTWARE%\java\jre-8u74-windows-x64.exe" /s /L
> "%TEMP%\jreinstall.log"' />
>
> Greetings ...
> Marco
>
>
> On 20.02.2016 10:57, Marco Schmidt wrote:
>> At least one of the questions I could answer by myself now.
>> I logged the environment the "WPKG Service" is running with.
>>
>> System User has its AppData folder under:
>> %SYSTEMROOT%\system32\config\systemprofile
>>
>> And I can abandon my theory about the msi folder, because finally I
>> found it in:
>> %SYSTEMROOT%\system32\config\systemprofile\AppData\LocalLow\Oracle\java\jre1.8.0....
>>
>> One option I will test with this knowledge is to use this msi to install
>> java. In detail:
>> 1. start the jre...exe which puts the msi in the path described above.
>> 2. use msiexec to install the msi in the path described above.
>>
>> This would skip the step of extracting the msi manually.
>>
>> Greetings ...
>> Marco
>>
>> PS: It's never a problem, it's always a challenge :-)
>>
>> On 20.02.2016 08:38, Marco Schmidt wrote:
>>> Hello
>>>
>>> If the java8 installer is run under system user, it starts and exists
>>> with error 0 without doing its job.
>>>
>>> I assume this is because the installer wants to write the msi in the
>>> AppData of the installing user.
>>> Does the system user have an AppData folder?
>>> Or is it possible to "fake" a user by setting some environment variables?
>>>
>>> After changing the "WPKG Service" to run under a "real" user (e.g.
>>> administrator) it worked.
>>>
>>> Thats probably why installing via the extracted msi is the only way.
>>>
>>> By the way, the msi installer is part of "Oracle Java SE Advanced &
>>> Suite Products" for "Oracle Customers":
>>>
>>> https://www.java.com/en/download/faq/deploy-sysadmin.xml
>>>
>>> Greetings ...
>>> Marco
>>>
>>>
>>> On 26.01.2016 22:06, Frank Morawietz wrote:
>>>> Hi,
>>>>
>>>> I resumed my fights with the automated installation of Java 32-bit on
>>>> Windows 64-bit...
>>>>
>>>> Now, I am some steps further and got some new insights that I would like
>>>> to share with you.
>>>>
>>>> I found two situations where the installation simply hung:
>>>>
>>>> 1. When using PSExec
>>>> On the very first start, PSExec interactively asks for confirmation of
>>>> it's license. So, before using PSExec for installation, I had to start
>>>> it interactively once, so that I could accept the license before using
>>>> it. For using it in the system context, I had even to start it like
>>>> this: "PSExec -s -i PSExec".
>>>>
>>>> 2. The Java installer dialog
>>>> The dialog of the Java installer has to be avoided by the appropriate
>>>> start parameters.
>>>>
>>>> This hung situation was bad, because not only the Java installer, but
>>>> also the WPKG service itself got stock. Especially on Windows 8, WPKG
>>>> could only get back to work by either manually killing the hanging
>>>> installation processes or by performing an explicit reboot. Otherwise,
>>>> it keeps on hanging until the next Windows-update-caused reboot... :-(
>>>>
>>>>
>>>> Then, I finally got the installation working. - At least on Windows 7,
>>>> 64-bit. I had to start the setup program (jre-8uXX-windows-i586.exe)
>>>> with "%COMSPEC% /c", otherwise it failed with error code -80. I don't
>>>> know why it works without for you, Holger. Do you use another
>>>> installation program?
>>>>
>>>> On Windows 8.1, the very same installation commands are still failing.
>>>> Or better, they succeed, but they only pretend.(!)
>>>>
>>>> 2016-01-26 19:38:32, DEBUG : Executing command: '%COMSPEC% /c
>>>> %SOFTWARE%\jre-%UPDATEVER%u%SHORTUPDATEVER%-windows-i586.exe %PARAM% >>
>>>> %JAVA_LOG%' ('C:\WINDOWS\system32\cmd.exe /c
>>>> \\INSTSERV\autoinst\software\jre-8u71-windows-i586.exe INSTALL_SILENT=1
>>>> STATIC=0 AUTO_UPDATE=0 WEB_ANALYTICS=0 REBOOT=0 NOSTARTMENU=1 SPONSORS=0
>>>> /L \\INSTSERV\autoinst\logs\PC01-java-update.txt.log >>
>>>> \\INSTSERV\autoinst\logs\PC01-java-update.txt').
>>>> 2016-01-26 19:38:41, INFO : Command '%COMSPEC% /c
>>>> %SOFTWARE%\jre-%UPDATEVER%u%SHORTUPDATEVER%-windows-i586.exe %PARAM% >>
>>>> %JAVA_LOG%' returned exit code [0]. This exit code indicates success.
>>>> 2016-01-26 19:38:41, INFO : Command in installation of Java Runtime
>>>> Environment returned exit code [0]. This exit code indicates success.
>>>>
>>>> So, the installation was obviously successful. But nothing got
>>>> installed! There is no Java installation nor does even the logfile get
>>>> created.
>>>>
>>>> A few lines later, WPKG notices this itself and reports it in the log file:
>>>>
>>>> 2016-01-26 19:38:44, ERROR : Could not process (upgrade) Java Runtime
>>>> Environment.|Failed checking after installation.
>>>>
>>>> Has anybody else ever experienced this? Any ideas?
>>>>
>>>> All the best,
>>>> Frank
>>>>
> -------------------------------------------------------------------------
> SSLrack - get your cheap cheap SSL certificates (standard, wildcard, EV)
> http://www.sslrack.com/
> -------------------------------------------------------------------------
> wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> https://lists.wpkg.org/mailman/listinfo/wpkg-users
--
Frank Morawietz <nestolea at gmail.com>
More information about the wpkg-users
mailing list