[wpkg-users] jre silent install on seven
Fabrice Flore-Thebault
themroc at centsix.org
Thu Dec 17 12:13:23 CET 2009
On Wednesday 16 December 2009 17:05:32 Jean-Jacques Moulis wrote:
> System32 when in 64bits mode is not the same system32 you got in 32bits
> mode
Thanks ! using directly the msi makes the economy of a decompression it's much
faster ... bugfixes which brings performance improvement i like that !
Now thats what i end with : two packages that are installed only on the
platform where they are needed. I'll add it in the wiki, but someday the java
page will need a cleanup ...
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<!-- new jre install with the msi ; for 32-bit hosts only -->
<package
id="jre"
name="Java(TM) 6 Update 17"
revision="7"
reboot="false"
priority="178"
>
<check type="logical" condition="or">
<check
type="registry"
condition="equals"
path="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment\PROCESSOR_ARCHITECTURE"
value="AMD64"
/>
<check
type="uninstall"
condition="exists"
path="Java(TM) 6 Update 17"
/>
<check
type="registry"
condition="equals"
path="HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{26A24AE4-039D-4CA4-87B4-2F83216017FF}\DisplayName"
value="Java(TM) 6 Update 17"
/>
<check
type="file"
condition="versiongreaterorequal"
path="%PROGRAMFILES(x86)%\Java\jre6\bin\java.exe"
value="6.0.170.4"
/>
</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='msiexec /qn /i %SOFTWARE%\jre\jre1.6.0_17.msi ADDLOCAL=ALL
REBOOT=Suppress IEXPLORER=1 MOZILLA=1 JAVAUPDATE=0 CUSTOM=1'
/>
<upgrade cmd='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.6.0_17.msi ADDLOCAL=ALL
REBOOT=Suppress IEXPLORER=1 MOZILLA=1 JAVAUPDATE=0 CUSTOM=1'
/>
<upgrade cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\Java\jre6\bin\jqs.exe
%PROGRAMFILES%\Java\jre6\bin\jqs.exe -unregister'>
<exit code='1' />
</upgrade>
<upgrade cmd='%COMSPEC% /C if exist "%PROGRAMFILES%\Java\jre6\bin\jqs.exe
%PROGRAMFILES%\Java\jre6\bin\jqs.exe -unregister'>
<exit code='1' />
</upgrade>
</package>
<!-- new jre install with the msi ; for 64-bit hosts only -->
<package
id="jre-64"
name="Java(TM) 6 Update 17"
revision="7"
reboot="false"
priority="178"
>
<check type="logical" condition="or">
<check
type="registry"
condition="equals"
path="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment\PROCESSOR_ARCHITECTURE"
value="x86"
/>
<check
type="uninstall"
condition="exists"
path="Java(TM) 6 Update 17 (64-bit)"
/>
<check
type="registry"
condition="equals"
path="HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{26A24AE4-039D-4CA4-87B4-2F83216017FF}\DisplayName"
value="Java(TM) 6 Update 17 (64-bit)"
/>
<check
type="file"
condition="versiongreaterorequal"
path="%PROGRAMFILES%\Java\jre6\bin\java.exe"
value="6.0.170.4"
/>
</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='msiexec /qn /i %SOFTWARE%\jre\jre1.6.0_17.msi ADDLOCAL=ALL
REBOOT=Suppress IEXPLORER=1 MOZILLA=1 JAVAUPDATE=0 CUSTOM=1'
/>
<upgrade cmd='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.6.0_17.msi ADDLOCAL=ALL
REBOOT=Suppress IEXPLORER=1 MOZILLA=1 JAVAUPDATE=0 CUSTOM=1'
/>
</package>
</packages>
--
Fabrice Flore-Thébault
More information about the wpkg-users
mailing list