Changes

Packages.xml

1,496 bytes added, 23:52, 21 December 2012
no edit summary
Please note that the target value for a download action is always relative to the downloadDir defined in wpkg.js (and there's currently no configuration option to change this from the default of %TEMP%).
 
==Action conditions==
 
1.3 permits more flexible conditions. For example:
 
<package id="pidgin" revision="1">
<install cmd='setup-32.exe ...'>
<condition>
<check type="host" condition="architecture" value="x86" />
</condition>
</install>
<install cmd='setup-64.exe ...'>
<condition>
<check type="host" condition="architecture" value="x64" />
</condition>
</install>
</package>
 
In place of:
 
<package id="pidgin" revision="1">
<install cmd='setup-32.exe ...' architecture="x86" />
<install cmd='setup-64.exe ...' architecture="x64" />
</package>
 
The following construct would be possible too:
 
<package id="pidgin" revision="1">
<install cmd='setup-64.exe ...'>
<condition>
<check type="logical" condition="or">
<check type="host" condition="architecture" value="x64" />
<check type="host" condition="os" value="windows 7" />
<check type="logical" condition="and">
<check type="uninstall" condition="exists" path="some-prog" />
<check type="registry" condition="exists" path="HKLM\..." />
</check>
</check>
</condition>
</install>
</package>
 
This would execute "setup-64.exe" only if either the architecture is x64, the OS string matches "windows 7" or if "some-prog" is installed along with a registry key.
 
 
 
==Quick examples==
Anonymous user