Changes

Jump to: navigation, search

Java

409 bytes removed, 09:25, 18 September 2012
Install JRE with msi without removing old version in a mixed 32-bit/64-bit environment
* On Windows XP and possibly others, it extracts to %APPDATA%\Sun\Java\jre1.7\.
* On Windows 7, it extracts to %APPDATA%\LocalLow\Sun\Java\jre1.7.0_x640_(...)[x64]
* On a 32-bit host it extracts to c:\Windows\system32\config\systemprofile\AppData\LocalLow\Sun\Java\jre1.7\.
* On a 64-bit host it extracts to c:\Windows\SysWOW64\config\systemprofile\AppData\LocalLow\Sun\Java\jre1.7\.
priority="178"
>
<variable name="updatever" value="0207" /> <variable name="shortupdatever" value="7" /> <variable name="version" value="7.0.2070.1310" />
<variable name="autoupdate" value="0" />
<check type="logical" condition="or">
<check type="uninstall" condition="exists"path="Java 7" /> <check type="uninstall" condition="exists" path="Java(\(TM\))* 7 Update %updatever%" /> <check type="uninstall" condition="exists" path="Java(\(TM\))* 7Update %shortupdatever%" />
</check>
</install>
<!-- Remove Java Auto Updater software -->
<install cmd='msiexec REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /qn v SunJavaUpdateSched /x {4A03706F-666A-4037-7777-5F2748764D10}f'>
<exit code='any' />
</install>
</upgrade>
<!-- Remove Java Auto Updater software -->
<upgrade cmd='msiexec REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /qn v SunJavaUpdateSched /x {4A03706F-666A-4037-7777-5F2748764D10}f'>
<exit code='any' />
</upgrade>
<!-- jre 64-bit install with the msi ; for 64-bit hosts only -->
<!-- There is no Automatic Update on Jre 64bit http://www.java.com/en/download/faq/java_win64bit.xml (see "Note" at bottom of page) -->
<package
id="jre-64"
priority="178"
>
<variable name="updatever" value="0207" /> <variable name="shortupdatever" value="7" /> <variable name="version" value="7.0.2070.1310" />
<variable name="autoupdate" value="0" />
<check type="logical" condition="or">
<check type="uninstall" condition="exists" path="Java7 (\(TM\64-bit))* " /> <check type="uninstall" condition="exists" path="Java 7 Update %updatever% (64-bit)" /> <check type="uninstall" condition="exists" path="Java(\(TM\))* 7 Update %shortupdatever% (64-bit)" />
</check>
<install cmd='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe'>
<exit code='0' />
<install cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\Java\jre7\bin\jqs.exe" "%PROGRAMFILES%\Java\jre7\bin\jqs.exe" -unregister'>
<exit code='1' />
</install>
<install cmd='%COMSPEC% /C if exist "%PROGRAMFILES(x86)%\Java\jre7\bin\jqs.exe" "%PROGRAMFILES(x86)%\Java\jre7\bin\jqs.exe" -unregister'>
<exit code='1' />
</install>
<!-- Remove Java Auto Updater software -->
<install cmd='msiexec /qn /x {4A03706F-666A-4037-7777-5F2748764D10}'>
<exit code='any' />
</install>
<exit code='1' />
</upgrade>
<upgrade cmd='%COMSPEC% /C if exist "%PROGRAMFILES(x86)%\Java\jre7\bin\jqs.exe" "%PROGRAMFILES(x86)%\Java\jre7\bin\jqs.exe" -unregister'> <exit code='1' /> </upgrade> <!-- Remove Java Auto Updater software --> <upgrade cmd='msiexec /qn /x {4A03706F-666A-4037-7777-5F2748764D10}'> <exit code='any' /> </upgrade>
<remove cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F864170%updatever%FF}' />
Anonymous user

Navigation menu