FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
java8-jre.xml 12.1 KiB
Newer Older
<?xml version="1.0" encoding="UTF-8"?>
<packages:packages xmlns:packages="http://www.wpkg.org/packages">

  <package id="java8-jre" name="Java8 Runtime Environment" revision="%version%.1" priority="50" reboot="false">
    <variable name="version" value="251" />

    <check type="logical" condition="and">
      <check type="logical" condition="and">
        <check type="uninstall" condition="exists" path="Java 8 Update %version% (64-bit)" />
        <check type="uninstall" condition="exists" path="Java 8 Update %version%" />
      </check>
      <check type="file" condition="exists" path="%programfiles%\java\jre1.8.0_%version%\lib\deployment.config"/>
      <check type="file" condition="exists" path="%programfiles%\java\jre1.8.0_%version%\system.config"/>
      <check type="file" condition="exists" path="%programfiles%\java\jre1.8.0_%version%\exception.sites"/>
    </check>

    <install cmd='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe'>
      <exit code='0' />
      <exit code='1' />
      <exit code='128' />
    </install>
    <install cmd='%WPKGSOFTWARE%\java\java8\jre-8u%version%-windows-x64.exe /s WEB_JAVA=1'>
      <exit code='1603'/> <!-- Sigh, we just have to hope this is an "already installed" error -->
    </install>
    <install cmd='%WPKGSOFTWARE%\java\java8\jre-8u%version%-windows-i586.exe /s WEB_JAVA=1'>
      <exit code='1603'/> <!-- Sigh, we just have to hope this is an "already installed" error -->
    </install>
    <!-- Disable Auto Update -->
    <install cmd='msiexec /qn /x {4A03706F-666A-4037-7777-5F2748764D10}' >
      <exit code='1603'/>
      <exit code='1605'/>
    </install>
    <!-- Set permitted sites -->
    <install cmd='cmd /c copy "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\deployment.config" "%programfiles%\java\jre1.8.0_%version%\lib"' >
      <condition>
         <check type="file" condition="exists" path="%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\deployment.config" />
      </condition>
    </install>
    <install cmd='cmd /c copy "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\deployment.config" "%PROGRAMFILESWPKG%\java\jre1.8.0_%version%\lib"' >
      <condition>
         <check type="file" condition="exists" path="%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\deployment.config" />
      </condition>
    </install>
    <!-- deployment.config tells it to load config from system.config -->
    <install cmd='cmd /c copy "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\system.config" "%programfiles%\java\jre1.8.0_%version%"' >
      <condition>
         <check type="file" condition="exists" path="%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\system.config" />
      </condition>
    </install>
    <install cmd='cmd /c copy "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\system.config" "%PROGRAMFILESWPKG%\java\jre1.8.0_%version%"' >
      <condition>
         <check type="file" condition="exists" path="%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\system.config" />
      </condition>
    </install>
    <!-- system.config tells it to load list of URLS from exception.sites -->
    <install cmd='cmd /c copy "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\exception.sites" "%programfiles%\java\jre1.8.0_%version%"' >
      <condition>
         <check type="file" condition="exists" path="%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\exception.sites" />
      </condition>
    </install>
    <install cmd='cmd /c copy "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\exception.sites" "%PROGRAMFILESWPKG%\java\jre1.8.0_%version%"' >
      <condition>
         <check type="file" condition="exists" path="%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\exception.sites" />
      </condition>
    </install>


    <upgrade cmd='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe' >
      <exit code='0' />
      <exit code='1' />
      <exit code='128' />
    </upgrade>
    <!-- Old Version -->
    <!-- when upgrading versions, add a pair of lines here (for 32/64 bit) to remove the versions being upgraded from.
         Copy the two msiexec <remove> cmds, substituting the right value for %version% -->
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F86418025F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F83218040F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F83218045F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F83218065F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F86418065F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F83218074F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F86418074F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F86418077F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F83218077F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F86418091F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F83218091F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F64180101F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F32180101F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F64180111F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F32180111F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F64180121F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F32180121F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F64180131F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F32180131F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F64180141F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F32180141F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F64180151F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F32180151F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F64180161F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F32180161F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F64180171F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F32180171F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F64180181F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F32180181F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F64180191F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F32180191F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F64180201F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F32180201F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F64180211F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F32180211F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F64180221F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>
    <upgrade cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F32180221F0}'> <exit code='1603'/> <exit code='1605'/> </upgrade>

    <upgrade cmd='%SOFTWARE%\java\java8\jre-8u%version%-windows-x64.exe /s WEB_JAVA=1'>
      <exit code='1603'/> <!-- Sigh, we just have to hope this is an "already installed" error -->
    </upgrade>
    <upgrade cmd='%SOFTWARE%\java\java8\jre-8u%version%-windows-i586.exe /s WEB_JAVA=1'>
      <exit code='1603'/> <!-- Sigh, we just have to hope this is an "already installed" error -->
    </upgrade>
    <!-- Disable Auto Update -->
    <upgrade cmd='msiexec /qn /x {4A03706F-666A-4037-7777-5F2748764D10}' >
      <exit code='1603'/>
      <exit code='1605'/>
    </upgrade>
    <upgrade cmd='cmd /c copy "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\deployment.config" "%programfiles%\java\jre1.8.0_%version%\lib"' >
      <condition>
         <check type="file" condition="exists" path="%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\deployment.config" />
      </condition>
    </upgrade>
    <upgrade cmd='cmd /c copy "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\deployment.config" "%PROGRAMFILESWPKG%\java\jre1.8.0_%version%\lib"' >
      <condition>
         <check type="file" condition="exists" path="%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\deployment.config" />
      </condition>
    </upgrade>
    <!-- deployment.config tells it to load config from system.config -->
    <upgrade cmd='cmd /c copy "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\system.config" "%programfiles%\java\jre1.8.0_%version%"' >
      <condition>
         <check type="file" condition="exists" path="%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\system.config" />
      </condition>
    </upgrade>
    <upgrade cmd='cmd /c copy "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\system.config" "%PROGRAMFILESWPKG%\java\jre1.8.0_%version%"' >
      <condition>
         <check type="file" condition="exists" path="%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\system.config" />
      </condition>
    </upgrade>
    <!-- system.config tells it to load list of URLS from exception.sites -->
    <upgrade cmd='cmd /c copy "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\exception.sites" "%programfiles%\java\jre1.8.0_%version%"' >
      <condition>
         <check type="file" condition="exists" path="%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\exception.sites" />
      </condition>
    </upgrade>
    <upgrade cmd='cmd /c copy "%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\exception.sites" "%PROGRAMFILESWPKG%\java\jre1.8.0_%version%"' >
      <condition>
         <check type="file" condition="exists" path="%WPKGSHAREBASE%\%WPKGINSTITUTION%-config\java\jre\exception.sites" />
      </condition>
    </upgrade>

    <remove cmd='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe' >
      <exit code='0' />
      <exit code='1' />
      <exit code='128' />
    </remove>
    <remove cmd='cmd /c del "%programfiles%\java\jre1.8.0_%version%\lib\deployment.config" "%programfiles%\java\jre1.8.0_%version%\system.config" "%programfiles%\java\jre1.8.0_%version%\exception.sites"'/>
    <remove cmd='cmd /c del "%PROGRAMFILESWPKG%\java\jre1.8.0_%version%\lib\deployment.config" "%PROGRAMFILESWPKG%\java\jre1.8.0_%version%\system.config" "%PROGRAMFILESWPKG%\java\jre1.8.0_%version%\exception.sites"'/>

    <remove cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F64180%version%F0}' />
    <remove cmd='msiexec /qn /x {26A24AE4-039D-4CA4-87B4-2F32180%version%F0}' />

  </package>

</packages:packages>