Jump to content

Featured Replies

  • 2 weeks later...
  • Replies 214
  • Views 72.9k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Version 3.3 is out. Changelog:

  • papageorgiou
    papageorgiou

    Here was my solution.   I first noticed with 8u20 that the 64bit version when extracted had different file names so the rename commands failed. ren "%~dp0JRE_TEMP64\%JAVAFN64%_101_JAVA_INSTALLER.bin"

  • Version 2.3 of the script is on the first post.   What's new:   After some researches, I've found a way to extract the x86 MSI with ResourcesExtract: the x86 setup is compressed with UPX, once uncomp

Posted Images

  • Author

Here is a new beta version for Java 9:
JAVA-Multi_Maker_4.0b1.zip

You have to download the Java 9 setup(s) from here (x64)  | mirror x64 | mirror x64 | mirror x86 (serving x64 ATM) | mirror x86 .
Copy it/them in the "JRE_setups" folder then launch "_JAVA_Multi_Maker.cmd".

Download function may return when Java 9 will be on the official download page.

Tested on Windows 7 & 10 x64, everything works as intended.

The script have been modified a lot, hence the bump in version number:

  • Removed the GUI option.
  • Added a new question (to make install passive or silent).
  • Removed any language other than English and French.
  • Because Java GUIDs are constantly changing, uninstallation is now done with WMIC.
  • More switches (see ReadMe), you can now keep previous Java 8 versions (previous Java 9 will always be removed).


Please test and report how it works for you.

 

1 hour ago, mooms said:

Hi Thiersee,

I'm not sure to understand what you mean.

I haven't changed anything in the colors since some versions, they cycle with each questions to show it's a different one.

Sorry mooms, you're right!

I don't know, where I had my brain...:blush:!

6 minutes ago, Boskorp said:

Works good. What is the difference between passive and silent installation?

In "silent" you do not have any output; in "passive" you see only the installer's GUI (not the unpacking's one).

Hi mooms,

starting the dual installer on a x86-system gives an error after a while (see picture); the old dual-installer (8u144) works without issues.

On x64-systems no problems.

JAVA_Mooms.JPG.6bc570bb3adf39976ceb4663204aa7e0.JPG

 

Edited by Thiersee

  • Author
On 18/10/2017 at 9:58 PM, Thiersee said:

Which differences to 4.0b3?

4.0b3 (or earlier) fails with 9.0.1 installers.

Oracle have changed something (again) in the logic of the installer, I had to adjust the script to work wit 9.0.1, hopefully it should work with future versions now, as the method is more "universal" (but more complex).

In detail, the name of the file extracted by ResourcesExtract that was useful was "%filename_without_extension%_100_10.bin"

Same logic for the second extraction with ResourcesExtract (yes, install files are packed 3 times, they are in a msi inside an exe inside an exe...)

Now, it's different, so, because I know the files needed are big (several MB) I have added a function that will delete all files smaller than 1000000 bytes (~ 10MB) in the extraction folder:

:Clean_temp_files
for %%F IN (.\JRE_TMP_EX\*.*) do  (if %%~zF lss 1000000 del %%F)

Then rename the only file left.

That should works with any names, and as long as they don't change the install logic too much.

 

 

On 18/10/2017 at 9:58 PM, Thiersee said:

BTW: did find JRE 9.0.1 x86?

Nope, but it should work fine.

 

BTW, because they have changed the naming scheme (9.0.1 and no more 9u01), the logic used in the script to find the more recent setup in the folder is not working (it process Java 9 instead of 9.0.1 if they are both in the JRE_setups folder), so you should remove older setups from this folder.

I will wait for the next version to see how things goes.

On 19.10.2017 at 1:58 AM, mooms said:

Now, it's different, so, because I know the files needed are big (several MB) I have added a function that will delete all files smaller than 1000000 bytes (~ 10MB) in the extraction folder:


:Clean_temp_files
for %%F IN (.\JRE_TMP_EX\*.*) do  (if %%~zF lss 1000000 del %%F)

Hi mooms,

this is 1MB, not 10 ^_^.

I tried this with the script:

1) In "bin" missing files copied from maker 3.5

2) Uncommented all lines with "::"

3) "Hard-coded" the Bundled-Id from the links in Boskorp's post

:Get_Java_x86
get the latest BundleId
for /f "usebackq delims=>= tokens=4" %%i in (`.\bin\curl %JAVA_URL%^|findstr /c:"Download Java software for Windows Offline"`) do (
   set BundleID=227984
)
%ARIA%  %JAVA_DL_URL%=%BundleId%
goto :eof

:Get_Java_x64
get the latest BundleId
for /f "usebackq delims=>= tokens=4" %%i in (`.\bin\curl %JAVA_URL%^|findstr /c:"Download Java software for Windows (64-bit)"`) do (
   set BundleID=227983
)

The script downloads both the x86 & x64-files and generates an installer, but at the beginning of the run (cmd window) it outputs an error (it seems without effects)

Quote

Der Befehl "get" ist falsch geschrieben oder konnte nicht gefunden werden

The command "get" is misspelled or could not be found

 

  • 2 months later...

@mooms

Java 9.0.4 released!

You get the x64-version directly here after accepting the license agreement; to get the  x86-version don't close the browser or leave the site; copy the x64-URL instead, put it into the address line and modify x64 in x86 in the URL.

BTW: Happy New Year!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...