Jump to content

Java Multi Maker


mooms

Recommended Posts

  • 2 weeks later...

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.

 

Link to comment
Share on other sites

Hi Thiersee,

3 hours ago, Thiersee said:

different colors for different masks

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.

Link to comment
Share on other sites

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:!

Link to comment
Share on other sites

You're right, the config file for dual installer missed the ":x64" argument.

Here is 4.0b3:

JAVA-Multi_Maker_4.0b3.zip

What's new:

  • Bugfix: config file for dual installer missed the ":x64" argument in x64 installers
  • Compress the SFX module with UPX if needed (because of Mediafire I can't ship it already compressed).

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

  • 2 months later...

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...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...