File size test

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

It is possible to check if the file has the right size:

<check type="file" condition="sizeequals" path="C:\some\file" value="654" />

Value is specified in bytes; if the size matches, the test will pass, if the size doesn't match, the test will fail.