[wpkg-users] Logical conditions: are complex statements supported?

Malte Starostik malte at malte.homeip.net
Mon Aug 17 11:04:49 CEST 2009


Am Montag, 17. August 2009 11:01:56 schrieb Johannes.Brix at evidian.com:
> Hello,

Hello again,

> I have a question concerning logical conditions:
> Are complex conditions supported like the one below?
>
> <check type="logical" condition="and">
>    <check type="uninstall" condition="exists" path="Symantec Endpoint
> Protection" />
>    <check type="logical" condition="or">
>       <check type="registry" condition="equals"
> path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
> NT\CurrentVersion\CurrentVersion" value="5.0" />
>       <check type="registry" condition="equals"
> path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
> NT\CurrentVersion\CurrentVersion" value="6.0" />
>    </check>
> </check>

Yes they are.  One thing to keep in mind is that if one of the subchecks fails 
you will get spurious log messages about this even if the outer check 
succeeds.

Regards,
Malte



More information about the wpkg-users mailing list