MSFN Forum: Java silent install. Message pops up - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Java silent install. Message pops up Rate Topic: -----

#1 User is offline   bench2010 

  • Group: Members
  • Posts: 2
  • Joined: 30-November 11
  • OS:none specified
  • Country: Country Flag

Posted 30 November 2011 - 03:15 PM

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

Attached File(s)


This post has been edited by bench2010: 30 November 2011 - 03:16 PM



#2 User is offline   EDEN2010 

  • Newbie
  • Group: Members
  • Posts: 19
  • Joined: 04-February 10

Posted 30 November 2011 - 08:30 PM

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

#3 User is offline   buzmarius 

  • Group: Members
  • Posts: 3
  • Joined: 13-January 12
  • OS:XP Pro x86
  • Country: Country Flag

Posted 24 January 2012 - 07:07 AM

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

This post has been edited by buzmarius: 24 January 2012 - 07:35 AM


#4 User is offline   harshadhparulekar 

  • Group: Members
  • Posts: 9
  • Joined: 11-February 12
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 12 February 2012 - 11:27 PM

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

This post has been edited by harshadhparulekar: 16 February 2012 - 09:55 AM


#5 User is offline   ionut_y 

  • Junior
  • Pip
  • Group: Members
  • Posts: 65
  • Joined: 25-June 08

Posted 17 February 2012 - 12:45 AM

Take a look there,I use this for a while and it works fine : http://www.ryanvm.ne...p=106201#106201

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy