[wpkg-users] Java7 for all but one host

Jáder Marasca dv.linuxfacil at gmail.com
Fri Nov 1 14:35:07 CET 2013


Stefan

Thanks by your quick ansser... but I´m not sure if I understood it.
I have a Java7 package as from wiki page.
I´ll update it to include the new verification.

It will became something like to avoid install on hostname "PC-MICHELE":


(...)
  name="Java Runtime Environment 7"
  revision="%version%"
  reboot="false"
  priority="100">
*  <condition>*
*            <check type="logical" condition="not">*
*                <check type="host" condition="hostname"
value="PC-MICHELE"/>*
*            </check>*
*  </condition>*

  <variable name="version" value="5" />

 <check
    type="uninstall"
    condition="exists"
    path="Java(\(TM\))* 7 Update %version%" />

  <install cmd='taskkill /f /im jqs.exe /im iexplore.exe /im firefox.exe'>
    <exit code='0' />
    <exit code='1' />
    <exit code='128' />
  </install>
(...)

It´s that right?

Thanks

Jáder


2013/11/1 Stefan Pendl <stefan.pendl.71 at gmail.com>

> Am 01.11.2013 13:57, schrieb Jáder Marasca:
>
>  I´d like to create a Java7 install package but ONE computer need to use
>> ONLY Java6 so I think about to use HOSTNAME variable to deny install on
>> that single host.
>>
>> I just do not know how to use it ! :$
>>
>> Any tips about this?
>>
>>
>>  I do have the following package, so I can apply Java to any Profile and
> sort out which version to install inside of that package.
>
> '---code start (watch for line wraps)
>
> <package id="Java" name="Java" revision="2011.10.22" reboot="false"
> priority="10" execute="once">
>     <include package-id="JRE6" os="5\.0\.\d{4}"/>
>     <include package-id="JRE7">
>         <condition>
>             <check type="logical" condition="not">
>                 <check type="host" condition="os" value="5\.0\.\d{4}"/>
>             </check>
>         </condition>
>     </include>
> </package>
>
> '---code end
>
> --
> Stefan P.
>
> Top-posting:
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing in e-mail?
>
> ------------------------------**------------------------------**
> -------------
> Hotel discounts, best prices: http://www.booking.com/index.**
> html?aid=366545 <http://www.booking.com/index.html?aid=366545>
> ------------------------------**------------------------------**
> -------------
> wpkg-users mailing list archives >> http://lists.wpkg.org/**
> pipermail/wpkg-users/ <http://lists.wpkg.org/pipermail/wpkg-users/>
> ______________________________**_________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/**listinfo/wpkg-users<http://lists.wpkg.org/mailman/listinfo/wpkg-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20131101/f5e5e5ba/attachment-0003.html>


More information about the wpkg-users mailing list