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">
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<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>