Changes

Jump to: navigation, search

Java

619 bytes added, 14:03, 9 June 2011
Install JRE with msi without removing old version in a mixed 32-bit/64-bit environment: Update to patch 26, use variables for easy updating, clarify MSI extraction procedure
===Install JRE with msi without removing old version in a mixed 32-bit/64-bit environment===
On 64-bit hosts installing the exe doesn't work.jre-6u17-windows-i586.exe is a 32bit app containing a msi, a cab and some other files.On a 32-bit host it unpacks in in c:\Windows\system32\config\systemprofile\AppData\LocalLow\Sun\Java\jre1.6.0_17\.On a 64-bit host it unpacks in c:\Windows\SysWOW64\config\systemprofile\AppData\LocalLow\Sun\Java\jre1.6.0_17\.The the silent install on a 64-bit host is still looking for the msi in the *System32* directory, so the best thing to do is to install the msi package.
So the best thing to do * jre-6u26-windows-i586.exe is to install the 32bit installer containing a msi package, a cab and some other files. Copy the content * jre-6u26-windows-x64.exe is a 64bit version of the above. Run the installer without going any further, then find the extracted directory: * On Windows XP and possibly others, it extracts to %APPDATA%\Sun\Java\jre1.6.0_26\.* On a 32-bit host it extracts to c:\Windows\system32\config\systemprofile\AppData\LocalLow\Sun\Java\jre1.6.0_26\.* On a 64-bit host it extracts to c:\Windows\SysWOW64\config\systemprofile\AppData\LocalLow\Sun\Java\jre1.6.0_170_26\.on Copy the content of the unpacked directory onto your server and install from it.
You should install both 32-bit and 64-bit java on 64-bit machines if you want a 32-bit browser being able to use java.
<package
id="jre"
name="Java(TM) 6 Update 1726" revision="7%version%"
reboot="false"
priority="178"
>
<variable name="updatever" value="26" />
<variable name="version" value="6.0.260.3" />
<variable name="autoupdate" value="0" />
 
<check type="logical" condition="or">
<check
type="uninstall"
condition="exists"
path="Java(TM) 6 Update 17%updatever%"
/>
<check
type="registry"
condition="equals"
path="HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{26A24AE4-039D-4CA4-87B4-2F83216017FF2F832160%updatever%FF}\DisplayName" value="Java(TM) 6 Update 17%updatever%"
/>
<check
condition="versiongreaterorequal"
path="%PROGRAMFILES(x86)%\Java\jre6\bin\java.exe"
value="6.0.170.4%version%"
/>
<check
condition="versiongreaterorequal"
path="%PROGRAMFILES%\Java\jre6\bin\java.exe"
value="6.0.170.4%version%"
/>
</check>
</install>
<install
cmd='msiexec /qn /i %SOFTWARE%\jre\jre1.6.0_170_%updatever%.msi ADDLOCAL=ALL REBOOT=Suppress IEXPLORER=1 MOZILLA=1 JAVAUPDATE=0 %autoupdate% CUSTOM=1'
/>
<install cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\Java\jre6\bin\jqs.exe" "%PROGRAMFILES%\Java\jre6\bin\jqs.exe" -unregister'>
</upgrade>
<upgrade
cmd='msiexec /qn /i %SOFTWARE%\jre\jre1.6.0_170_%updatever%.msi ADDLOCAL=ALL REBOOT=Suppress IEXPLORER=1 MOZILLA=1 JAVAUPDATE=0 %autoupdate% CUSTOM=1'
/>
<upgrade cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\Java\jre6\bin\jqs.exe" "%PROGRAMFILES%\Java\jre6\bin\jqs.exe" -unregister'>
<package
id="jre-64"
name="Java(TM) 6 Update 1726" revision="7%version%"
reboot="false"
priority="178"
>
<variable name="updatever" value="26" />
<variable name="version" value="6.0.260.3" />
<variable name="autoupdate" value="0" />
<check type="logical" condition="or">
type="uninstall"
condition="exists"
path="Java(TM) 6 Update 17 %updatever% (64-bit)"
/>
<check
type="registry"
condition="equals" path="HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{26A24AE4-039D-4CA4-87B4-2F83216017FF2F832160%updatever%FF}\DisplayName" value="Java(TM) 6 Update 17 %updatever% (64-bit)"
/>
<check
condition="versiongreaterorequal"
path="%PROGRAMFILES%\Java\jre\bin\java.exe"
value="6.0.170.4%version%"
/>
</check>
</install>
<install
cmd='msiexec /qn /i %SOFTWARE%\jre-64\jre1.6.0_170_%updatever%.msi ADDLOCAL=ALL REBOOT=Suppress IEXPLORER=1 MOZILLA=1 JAVAUPDATE=0 %autoupdate% CUSTOM=1'
/>
</upgrade>
<upgrade
cmd='msiexec /qn /i %SOFTWARE%\jre-64\jre1.6.0_170_%updatever%.msi ADDLOCAL=ALL REBOOT=Suppress IEXPLORER=1 MOZILLA=1 JAVAUPDATE=0 %autoupdate% CUSTOM=1'
/>
Anonymous user

Navigation menu