Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 



bench2010

Java silent install. Message pops up

Recommended Posts

Hello,

I received the attached message when trying to silently install Java 6 Update 29. The message pops up on machines with internet explorer opened, or java is being used by another applications. Can someone please tell me where I went wrong, and what I can change in order to make my install more silent. Is IEXPLORER=1 needed?

The machines I am updating are all running Windows XP 32 bit.

I ran the following:

echo off

start C:\support\jre-6u29-windows-i586-s.exe /s IEXPLORER=1 REBOOT=SUPRESS JAVAUPDATE=0 SYSTRAY=0 >c:\support\it\install_java.log

post-339330-0-03379900-1322687779_thumb.

Edited by bench2010

Share this post


Link to post
Share on other sites

Hello

Try that

Rename your file jre-6u29-windows-i586-s.exe to target.exe

now open Notepad then copy that code and name it XXX.bat


target.exe /s IEXPLORER=1 MOZILLA=1 REBOOT=Suppress ADDLOCAL=ALL %args%

set err=%errorlevel%

if %err% NEQ 1603 GOTO skip_uninstall

rem uninstall 6.23
msiexec.exe /qn /norestart /x {26A24AE4-039D-4CA4-87B4-2F83216022FF}
msiexec.exe /qn /norestart /x {26A24AE4-039D-4CA4-87B4-2F83216022F0}

rem now re-install the product
target.exe /s IEXPLORER=1 MOZILLA=1 REBOOT=Suppress ADDLOCAL=ALL %args%
set err=%errorlevel%

:skip_uninstall


if %err% NEQ 1619 GOTO skip_retry
if %running_as_system% NEQ 1 GOTO skip_retry

"%installdir%\sleep.exe" 5
rem md "%SystemRoot%\SysWOW64\config\systemprofile\AppData\LocalLow\Sun"
"xcopy.exe" /E /C /I /G /H /R /Y "%SystemRoot%\SysWOW64\config\systemprofile\AppData\LocalLow\Sun\Java" "%SystemRoot%\Sysnative\config\systemprofile\AppData\LocalLow\Sun\Java"

target.exe /s IEXPLORER=1 MOZILLA=1 REBOOT=Suppress ADDLOCAL=ALL %args%
set err=%errorlevel%

:skip_retry



IF "%xparam_disableautoupdate%" NEQ "1" exit %err%

msiexec /qn /x {4A03706F-666A-4037-7777-5F2748764D10}

regedit.exe /s disable_autoupdate.reg

exit %err%

now open Notepad then copy that code and name it disable_autoupdate.reg

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Update\Policy]
"EnableAutoUpdateCheck"=dword:00000000
"EnableJavaUpdate"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"SunJavaUpdateSched"=-

then u have silent install

goodluck

Share this post


Link to post
Share on other sites

Strictly related to popup: use

taskkill /F /IM iexplore.exe
taskkill /F /IM jqs.exe

after echo.

As you can see in config file I'm using these:

ADDLOCAL=ALL IEXPLORER=1 MOZILLA=1 SYSTRAY=0 JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0 REBOOT=suppress

Make a habit of closing all programs before installing/updating.

------------------------------------

This is my version of JRE 7.02 with x86/x64 autodetection, using 7z SFX Tools.

I got both versions, Java Runtime Environment 1.7.0.2, 32 and 64-bits. Their names should look like this: jre-7u2-windows-x64.exe, jre-7u2-windows-x86.exe.

Packed them in an archive called 2in1.7z.

From 7zip installation folder I copied 7zr.exe next to above mentioned archive then archived both files in JRE.7z.

Used config file and created JRE.exe using classic method

copy /b 7zsd.sfx + JRE.txt + JRE.7z JRE.exe

or, better, with Button for TotalCommander by Gora.

For silent install use JRE.exe -ai -gm2. If you want normal install, just double click on JRE.

Here is the config file


;!@Install@!UTF-8!
SetEnvironment="Name=Java Runtime Environment %%P"
SetEnvironment="Startx86=jre-%nVer%-windows-x86"
SetEnvironment="Startx64=jre-%nVer%-windows-x64"
Title="%Name% installation"
BeginPrompt="Install now %Name%%Vers% ?"
FinishMessage="%Name%%Vers% successfully installed !"
GUIFlags="2+4+8+16+32+2048"
GUIMode="1"
MiscFlags="4"
ExtractTitle="Extracting files ..."
ExtractDialogText="Please wait ..."
RunProgram="hidcon:cmd /c For /L %i In (10,1,27) Do start /w MsiExec /qn /X{26A24AE4-039D-4CA4-87B4-2F832160%iFF}"
RunProgram="%%P:hidcon:fm10:7zr.exe x 2in1.7z %Start%%P%.exe"
RunProgram="%%P:%Start%%P%.exe"
RunProgram="hidcon:reg delete HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /v \"SunJavaUpdateSched\" /f"
RunProgram="x86:hidcon:\"%programfiles%\\Java\\jre7\\bin\\jqs.exe\" -unregister"
AutoInstall="hidcon:cmd /c For /L %i In (10,1,27) Do start /w MsiExec /qn /X{26A24AE4-039D-4CA4-87B4-2F832160%iFF}"
AutoInstall="%%P:hidcon:fm0:7zr.exe x 2in1.7z %Start%%P%.exe"
AutoInstall="%%P:%Start%%P%.exe /s ADDLOCAL=ALL IEXPLORER=1 MOZILLA=1 SYSTRAY=0 JAVAUPDATE=0 JU=0 AUTOUPDATECHECK=0 REBOOT=suppress"
AutoInstall="hidcon:reg delete HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /v \"SunJavaUpdateSched\" /f"
AutoInstall="x86:hidcon:\"%programfiles%\\Java\\jre7\\bin\\jqs.exe\" -unregister"
SetEnvironment="Vers= v7.0.2"
SetEnvironment="nVer=7u2"
;!@InstallEnd@!

It uninstalls ANY previous version, prevents jqs.exe from starting and deletes from registry autoupdate.

Edited by buzmarius

Share this post


Link to post
Share on other sites

can you upload or give link for that installer

as i tried it and it didnt work or atleast give link of how to do it using Total Commander

Edited by harshadhparulekar

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Recently Browsing   0 members

    No registered users viewing this page.

×