91
edits
Changes
Java
,→Java Runtime Environment (JRE) 8: Corrected ordering, normalized indentation. I picked four-space indents since that's what 80-90% of the package was using.
<variable name="updatever" value="08" />
<variable name="shortupdatever" value="31" />
<variable name="version" value="8.0.%shortupdatever%" />
<check type="uninstall" condition="exists" path="Java 8 Update %updatever%" />
<check type="uninstall" condition="exists" path="Java 8 Update %shortupdatever%" />
</check>
<install cmd='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe'>
</install>
<install cmd='msiexec /i %SOFTWARE%\java\jre1.8.0_%shortupdatever%.msi JU=0 JAVAUPDATE=0 AUTOUPDATECHECK=0 RebootYesNo=No WEB_JAVA=1 /q' >
</install>
<upgrade cmd='msiexec.exe /qn /x {26A24AE4-039D-4CA4-87B4-2F832180%prevshortupdatever%F0}' /> <!--Remove previous Version-->
<remove cmd='msiexec.exe /qn /x {26A24AE4-039D-4CA4-87B4-2F832180%shortupdatever%F0}' />
<check type="uninstall" condition="exists" path="Java 8 Update %updatever% (64-bit)" />
<check type="uninstall" condition="exists" path="Java 8 Update %shortupdatever% (64-bit)" />
</check>
<exit code='any' />
</install>
<!-- All architectures: remove Java Quick Starter --> <install architecture="x64" cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\Java\jre1.8.0_%shortupdatever%\bin\jqs.exe" "%PROGRAMFILES%\Java\jre1.8.0_%shortupdatever\bin\jqs.exe" -unregister'> <exit code='any' />
</install>
<install architecture="x64" cmd='%COMSPEC% /C if exist "%PROGRAMFILES(x86)%\Java\jre1.8.0_%shortupdatever%\bin\jqs.exe" "%PROGRAMFILES(x86)%\Java\jre1.8.0_%shortupdatever\bin\jqs.exe" -unregister'> <exit code='any' />
</install>
<!-- All architectures: remove Java Auto Update -->
<install cmd='REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v SunJavaUpdateSched /f'>
<exit code='any' />
</install>
<downgrade include="install" />
<upgrade include="install" />