Changes
Java
,→Install JRE with msi without removing old version in a mixed 32-bit/64-bit environment
<variable name="autoupdate" value="0" />
<check architecture="x86" type="file" condition="exists" path="%PROGRAMFILES%\Java\jre7\bin\java.exe" />
<check architecture="x64" type="file" condition="exists" path="%PROGRAMFILES(X86)%\Java\jre7\bin\java.exe" />
<check type="logical" condition="or">
<check type="uninstall" condition="exists" path="Java 7" />
<install cmd='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe'>
<exit code='1' />
<exit code='128' />
</install>
<upgrade cmdinclude='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe'> <exit code='0' /> <exit code='1' /> <exit code='128' /> </upgrade> <upgrade cmd='msiexec /qn /i %SOFTWARE%\jre\jre1.7.0_u%updatever%.msi REBOOT=Suppress IEXPLORER=1 MOZILLA=1 JAVAUPDATE=%autoupdate% CUSTOM=1' /> <!-- remove Java Quick Starter --> <upgrade cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\Java\jre7\bin\jqs.exeinstall" "%PROGRAMFILES%\Java\jre7\bin\jqs.exe" -unregister'> <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='REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v SunJavaUpdateSched /f'> <exit code='any' /> </upgrade>
<remove cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F832170%updatever%FF}' />
<variable name="updatever" value="07" />
<variable name="shortupdatever" value="7" />
<variable name="version" value="7.0.70.1011" />
<variable name="autoupdate" value="0" />
<check architecture="x64" type="file" condition="exists" path="%PROGRAMFILES%\Java\jre7\bin\java.exe" /> <check architecture="x64" type="logical" condition="or">
<check type="uninstall" condition="exists" path="Java 7 (64-bit)" />
<check type="uninstall" condition="exists" path="Java 7 Update %updatever% (64-bit)" />
</check>
<install architecture="x64" cmd='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe'> <exit code='0' />
<exit code='1' />
<exit code='128' />
</install>
<installarchitecture="x64"
cmd='msiexec /qn /i %SOFTWARE%\jre-64\jre1.7.0_u%updatever%.msi REBOOT=Suppress IEXPLORER=1 MOZILLA=1 JAVAUPDATE=%autoupdate% CUSTOM=1'
/>
<!-- remove Java Quick Starter -->
<install architecture="x64" cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\Java\jre7\bin\jqs.exe" "%PROGRAMFILES%\Java\jre7\bin\jqs.exe" -unregister'>
<exit code='1' />
</install>
<upgrade cmdinclude='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe' > <exit code='0' /> <exit code='1' /> <exit code='128' /> </upgrade> <upgrade cmd='msiexec /qn /i %SOFTWARE%\jre-64\jre1.7.0_u%updatever%.msi REBOOT=Suppress IEXPLORER=1 MOZILLA=1 JAVAUPDATE=%autoupdate% CUSTOM=1' /> <!-- remove Java Quick Starter --> <upgrade cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\Java\jre7\bin\jqs.exeinstall" "%PROGRAMFILES%\Java\jre7\bin\jqs.exe" -unregister'> <exit code='1' /> </upgrade>
<remove architecture="x64" cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F864170%updatever%FF}' />
</package>