Changes

Java

799 bytes added, 18:24, 20 April 2015
Install 32- and 64-bit JRE, remove the previous version: Attempted to make instructions clearer, reconstructed missing steps
This package explicitly removes the previous version. This is the simplest and fastest method, but if a computer misses an update (e.g. if you push two versions of Java between runs of WPKG), this will miss removing an older JRE.
#Get the offline-installers from http://www.oracle.com/technetwork/java/javase/downloads/index.html.#Edit the XML:##Set <code>%prevshortupdatever%</code> to what <code>%shortupdatever%</code> is currently set to.##Set <code>%shortupdatever%</code> to the new Java &mdash; e.g. for JRE 8u45, set it to 45.#Extract the MSI-files:*Run the installer ##:While logged on a test-computer*Copy as an administrator, run the MSI-file from installers. When you get to the "Welcome to Java" dialog, click "Cancel". '''Do not continue with the installation.'''## Navigate to <code>%APPDATA%\..\LocalLow\Sun\Java\</code> (e.g. <code>C:\Users\username\AppData\LocalLow\Sun\Java </code>).##Copy the 32-bit MSI file from <code>jre1.8.0_%shortversion%\</code> (e.g. <code>jre1.8.0_45\jre1.8.0_45.msi</code> to your installerfolder (<code>%SOFTWARE\java\</code>).##Rename the 64-bit MSI file in <code>jre1.8.0_%shortversion%_x64\</code> to end with <code>_x64.msi</code> (e.g. rename <code>jre1.8.0_45_x64\jre1.8.0_45.msi</code> to <code>jre1.8.0_45_x64\jer1.8.0_45_x64.msi</code>) and copy it to your installer folder.
To uninstall the old Java 7 and 8 versions you can use a [http://wpkg.org/index.php?title=Remove_Java a removal package].
91
edits