'---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<da...@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
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users