Difference between revisions of "Version checking"
From WPKG | Open Source Software Deployment and Distribution
m |
m |
||
Line 1: | Line 1: | ||
− | This document in other languages: [[ | + | This document in other languages: [[Version_checking:French|French]] |
---- | ---- | ||
"Version checking" (available in WPKG 0.9.6 and later) added five new 'conditions' to the 'file' test: | "Version checking" (available in WPKG 0.9.6 and later) added five new 'conditions' to the 'file' test: |
Latest revision as of 09:32, 16 December 2011
This document in other languages: French
"Version checking" (available in WPKG 0.9.6 and later) added five new 'conditions' to the 'file' test:
- versionsmallerthan (true if the file version is smaller than the version given in the 'value' argument)
- versionlessorequal (true if the file version is equal to or is smaller than the version given in the 'value' argument)
- versionequalto (true if the file versions are the same)
- versiongreaterorequal (true if the file version is larger than or equal to the version given in the 'value' argument)
- versiongreaterthan (true if the file version is larger than the version given in the 'value' argument)
All tests return 'false' if the file does not exist or the version could not be found.
Example:
<package id="kb899591xp" name="KB899591 for Windows XP"> <check type="file" condition="versiongreaterorequal" path="%windir%\system32\drivers\Rdpwd.sys" value="5.1.2600.2695" /> <install cmd='\\server\share\updates\common\WindowsXP-KB899591-x86-ENU.exe /passive /n /norestart'> <exit code="194" reboot="true" /> <exit code="3010" reboot="true" /> </install> </package>