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