[wpkg-users] logical not with OS type?

David Petterson david at ifm.liu.se
Mon Jan 16 15:43:14 CET 2012


'---code start (watch for line wraps)
>
> <include package-id="JRE7">
> <condition>
> <check type="logical" condition="not">
> <check type="host" condition="os" value="5\.0\.\d{4}"/>
> </check>
> </condition>
> </include>
>
> '---code end
>
As I understood you, I should create a dummy package that includes the 
real package like this:
(dummy file names in this example)

<package id="test" name="Test" revision="1" reboot="false" priority="100">
<include package-id="test2">
<condition>
<check type="logical" condition="not">
<check type="host" condition="os" value="5\.2\.\d{4}"/>
</check>
</condition>
</include>
</package>

<package id="test2" name="Test 2" revision="%VERSION%" reboot="false" 
priority="99">
<variable name="VERSION" value="1"/>
<check type="logical" condition="and">
<check type="uninstall" condition="versiongreaterorequal" path="Test" 
value="%VERSION%"/>
</check>
<install     architecture="x86" cmd='msiexec /qn /norestart /I 
"%SOFTWARE%\appx86.msi"'><exit code='3010'/></install>
<install     architecture="x64" cmd='msiexec /qn /norestart /I 
"%SOFTWARE%\appx64.msi"'><exit code='3010'/></install>
<upgrade    include="install"/>
<downgrade    include="install"/>
</package>

I have tried it on my testcomputer running XP 32 bit, but nothing gets 
installed. However, WPKG thinks that the install was successful.
I also tried to reverse the logic with an "and" and changed the value to 
what I found on the page:
http://wpkg.org/Extended_host_attribute_matching
But the end result was the same.

-- 
David Petterson<david at ifm.liu.se>		Phone: +46(0)13-28 2617
Systems Administrator
Department of Physics, Chemistry and Biology at Linköping University
Office: F F202
SE 581 83 Linköping, Sweden




More information about the wpkg-users mailing list