Jump to content
mooms

Java Multi Maker 3.5 & 4.0b4

Recommended Posts

This is a script to repack JRE (Java Runtimes) setups into a silent 7zip SFX installer.


Beta version for Java 9/10:

JAVA-Multi_Maker_4.0b4.zip

MD5: 203c7e514414c932ff847d3d8dac5fa4
SHA-1: 93fc856e026fc42298ebc8e76bba338f21c1704a
Size: 800KB


How to use:
You have to download the Java 9/10 setup(s) from here (x64)  | mirror x64 | mirror x64 | mirror x86 .
- Extract the archive in a work folder with no space in the path.
- Copy the setup(s) in the "JRE_setups" folder
- Launch "_JAVA_Multi_Maker.cmd".

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

Available switches:
No switch (dafault) - Silent install without Web plugins. Remove any previous Java version(s).
-ai   - Silent install with Web plugins. Remove any previous Java version(s).
-ai1  - Silent install without Web plugins. Remove only previous Java 9 version(s).
-ai2   - Silent install with Web plugins. Remove only previous Java 9 version(s).

Tested on Windows 7 & 10 x64, everything works as intended.
Please test and report how it works for you.


 ------------------------------------
 
Current version (for Java 8u73 and newer) (could work on XP if you use a custom build of aria2)
JAVA-Multi_Maker_3.5.zip
MD5: 7716dddd8c576f0d002e6ddeb43d1ac6
SHA-1: 495cf642bf73571bca97179e63ab28c88ca2f5f1
Size: 3.79 MB
 
 How to use:
- Extract the archive in a work folder with no space in the path.
- Run the batch file.
- Choose the version you want to use
The script will download the newest JRE automatically. If there is a problem with the download (or if you don't have access to Internet), you can also put the desired version(s) in the script's folder, it will always use the greater version found in the folder.

Notes:
- To avoid errors, the SFX will uninstall any previous Java version(s) newer than JRE 6.0 Update 22 before installing the new one(s).
nLite/RVMi Addons are no longer created
- It's highly recommended to NOT install Java web plugins, they are plagued with many vulnerabilities, but using Java locally is rather safe.
- You can use the uninstall tool for Java to remove (very) old versions.
 

Available switches:
GUI version:
-ai   - Silent install with Web plugins
-ai1 - Silent install without Web plugins
 
noGUI version:
no switch - Silent install without Web plugins
-ai            - Silent install with Web plugins
 
 
 ------------------------------------

Old version (for Java 8u20 up to 8u72) (works on XP)
JAVA-Multi_Maker_3.0.zip
MD5: d89eec93311acedd842c6378ed630734
Size: 1.29 MB
 
 ------------------------------------


Old version (for Java 6, 7 and 8 before 8u20)
JAVA-Multi_Maker_1.3a.zip
MD5: 8d592f99c2b25e2c4404203af0b4d082
Size: 373 KB
How to use:
- Extract the archive in a work folder with no space in the path.
- Download the x86 and/or x64 Offline setup of Java 6/7/8 and put it in the same folder.
- Run the batch file.
The maker will perform an admin install of Java and repack them inside a 7zip SFX.
 
Notes:
- The install is passive by default, use a switch if you want silent install.
- To avoid errors, the SFX will uninstall any previous Java version(s) newer than JRE 6.0 Update 22 before installing the new one(s).
- Update check and Java quick starter are disabled (JQS doesn't exist in x64 anyway).
- It's highly recommended to NOT install Java web plugins, they are plagued with many vulnerabilities, but using Java locally is rather safe.
- You can use the uninstall tool for Java to remove (very) old versions.
 
Available switches:
-ai   - Silent install with Web plugins
-ai1 - Silent install without Web plugins

Share this post


Link to post
Share on other sites

Hi, mooms.

 

It's too much to explain but is 100 % reproducible.

 

Try this experiment:

 

1. Install latest versions by originall installers, than run your Dual installer. Error. Uninstall from Control Panel works OK.

 

2. Run your Dual installer than look in Control Panel, icons OK. Run the second time your Dual installer, all OK, look in Control Panel, NO icons. Now uninstall from Controll Panel, RunDLL error. Leftover in Program Files.

Share this post


Link to post
Share on other sites

Hi ianymaty,

 

I can reproduce the install error in 1, but I can't reproduce the RunDLL & no Icons issue in 2.

 

I think the error in 1 is because previous install was not an admin install, I suppose the solution should be to uninstall any previous Java versions before installing this one, but I don't know if it could be done automatically and silently.

 

Can you test if you have the same issue with the installers from Kels or user_hidden ?

Share this post


Link to post
Share on other sites

Unfortunately all the installers do the same.  :(

 

When you run it second time on top of the first installation = no Control Panel icons and if you uninstall it from Control Panel complains of RunDLL and leftovers in Program Files.

 

4zx2.png

 

The original installers if runed second time it prompts that you have the same version installed. Click OK to install again and no problems in CP with icons and uninstall.

 

In the process as I see it runs the uninstall than a little window with some yellow comes up so briefly I can't read it is probably some warning but in the end all is OK.

 

So the process can be implemented as both problems are related to uninstall than reinstall since the original installer can do it right.

 

Hope this helps.

Share this post


Link to post
Share on other sites

@ianymaty:

 

My guess is this is because the first install was a regular install, then the second and third ones are admin install.

I'm not sure it can be fixed easily, unless someone found a way to automatically uninstall all previous Java versions before installing the new ones.

I will add a warning in the first post to uninstall previous Java versions if they are not admin install.

 

Version 1.2 of the maker: better compression of the installers, thanks to user_hidden.

Share this post


Link to post
Share on other sites

That used to work for updating only on v6.

 

However, I have been researching for the past hour and according to this:

 

http://docs.oracle.com/javase/7/docs/webnotes/install/windows/jre-installer-options.html

 

All of the switches that we use are depreciated and no good anymore.

 

After running tests we really only need to ad /qn or /qb! now everything else has been changed and fixed.

Share this post


Link to post
Share on other sites

I have found the same page when searching for install switches and, indeed, the switches we use are deprecated (but still works).

 

Do you know if  there is a difference between /s and /qn ?

 

I will update the maker, and maybe adding the option to install the web plugins or not.

Share this post


Link to post
Share on other sites

I found the time to work on this !

 

Version 1.3 of the maker:
 
- Only one script now, it will automatically create x86/x64/dual version of SFX & AddOn based on installer(s) found in the folder.
- Replaced 7z.exe/7z.dll with 7za.exe
- Changed the install switches for better compatibility with recent Java install.
- Slightly changed the install GUI.
- Added -ai1 switch to install Java without Web plugins.
- The SFX will uninstall previous Java version(s) to avoid problems.
 
If you have any problems with uninstalling previous Java version(s), run JavaRa

Share this post


Link to post
Share on other sites

Hi ,

 

=== Process ===

I have downloaded "JAVA-Multi_Maker_1.3.zip" .
I went to Java's site , i was unable to DL something .
Using this link http://javadl.sun.com/webapps/download/AutoDL?BundleId=83383
I have DL "jre-7u51-windows-i586.exe" .
I think , I have to uncompress the previous zip file ,
and create a new one including "jre-7u51-windows-i586.exe" .

How can i use this in the unattend process ?

===============

 

Regards .

Share this post


Link to post
Share on other sites

hi,

 

i get this error when i start the batch:

 

post-58870-0-34588600-1394653780_thumb.p

 

no idea what to to do about it.

 

the file is there but its not really created since it's taking 0kb.

 

if i cancel the setup continiues but only the x64 installer is included in the aio setup.

Edited by Profess0r1011000

Share this post


Link to post
Share on other sites

Try to move the work folder in the root of your drive.

 

that didn't work. tried several roots to be shure but with no luck. but since im the only one who is experiencing this it must be my config. i'll try it in a vm tomorrow

Share this post


Link to post
Share on other sites

Based on the error message, it seems either the unpacking of the resources (with ResourcesExtract.exe from Nirsoft) or the renaming fails.

Share this post


Link to post
Share on other sites

hmm. i have the same problem in a vm :\ didn't expect that.. the windows i'm running all of this on is a slimmed down windows 7 image. removed all the "safe" parts with wintoolkit. and messed with the services as well. there might be some backend process needed for something of this thats causing the error.. i didn't think that would be an issue when testing it in a virtual machine but who kows.. i've had som issues with other programs as well but most of them are network related. i'm working on a new build and will post back when i'm trying this again on a more stable os  :P

 

post-58870-0-47175400-1394916516_thumb.j

Edited by Profess0r1011000

Share this post


Link to post
Share on other sites

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.


  • Similar Content

    • By ricktendo
      Microsoft DirectX end-user Redistributable (June 2010)
      Version: 9.29.1974
      Supported operating systems: Windows 8, Windows 7, Windows Vista, Windows Server 2012/2008+R2/2003 SP1+, Windows XP SP2+
      Website: http://www.microsoft.com/en-us/download/details.aspx?id=8109
       
       
      x86/x64: removed
      MD5: 2ef61d694dbcb3b3d0f47f1bbc0ca831
      Size: 90.7 MB
      x86: removed
      MD5: 0f51f57cff0bf51aa368f90da1c8b525
      Size: 42.8
    • By niTe_RiDeR_Pr0
      SumatraPDF v3.2.10638 (Pre-Release) PDF Reader - Dual x86/x64 2-in-1 RePack
      About RePack (info):
      RePacks made by extracting the individual x86 & x64 installers available here & repacking them into an Inno setup. Nothing extra is added. Added choice to associate SumatraPDF with various file formats. Optional Command-Line Switches:
      File Details:
      File Name: SumatraPDF_3.2.10638.Dual_RePack.exe
      File Name: 6.17 MB
      MD5 Hash: C629DD40ACC6613BAB5B6F7FACE99AC4
      Screenshots are the top of the thread
    • By niTe_RiDeR_Pr0
      VidCoder v2.51 - Dual x86/x64 - 2-in-1 Compressed RePack
      About RePack (info):
      Multilanguage Installer. Installs 32/64bit version according to system architecture automatically. VidCoder requires .NET Framework 4.0. This RePack checks if .NET Framework 4.0 is installed in the system, and if it is not found, then it prompts the user to download and install automatically (within the installer). Compressed installer size from 24MB (size of 32+64bit installer) to 17MB. Optional Command-Line Switches:
      File Details:
      File Name: VidCoder_2.51_x86-x64_RePack.exe
      File Name: 17.9 MB
      MD5 Hash: 50D3F051BC2B7CA1E1C53448F523E02C
      Screenshots are at the top of this thread
    • By niTe_RiDeR_Pr0
      IrfanView v4.4.4 - x86/x64 + Plugins + Toolbars + Languages - 5-in-1 RePack
      About RePack (info):
      Multilanguage installer.   Installer contains: IrfanView-x86 files, IrfanView-x64 files, all plugins, all languages & 21 toolbar skins. Added IrfanPaint 3rd party plugin and Shell Extensions Installer installs x86/x64 version according to your Windows architecture. Optional Command-Line Switches:
       
      File Details:
      File Name: IrfanView_4.4.4.Dual_RePack.exe
      File Name: 30.2 MB
      MD5 Hash: B6D1ACB40002CCB6ACF5D115A92D14EC
      Screenshots are at the top of this thread
    • By niTe_RiDeR_Pr0
      IrfanView v4.4.4 - x86/x64 + Plugins + Toolbars + Languages - 5-in-1 RePack
      About RePack (info):
      Multilanguage installer.   Installer contains: IrfanView-x86 files, IrfanView-x64 files, all plugins, all languages & 21 toolbar skins. Added IrfanPaint 3rd party plugin and Shell Extensions Installer installs x86/x64 version according to your Windows architecture. Optional Command-Line Switches:

      Download: https://drive.google.com/uc?export=download&id=0BxE7TpGda882SmNOaTRpMS0xbHM
      File Name: IrfanView_4.4.4.Dual_RePack.exe
      File Name: 30.2 MB
      MD5 Hash: B6D1ACB40002CCB6ACF5D115A92D14EC
      Alternative Download Link: https://www.wincert.net/forum/index.php?/files/file/50-irfanview-v444-repack-x86x64pluginstoolbarslanguages-5-in-1/
       





       
×
×
  • Create New...