[wpkg-users] Unable to set the path to file sizeequals check

Daniel Dehennin daniel.dehennin at ac-caen.fr
Thu Apr 24 11:20:51 CEST 2008


Hello,

I'm unable to test a file size, using wpkg 1.1-M4

<check type='file'
       condition='exists'
       path='%ProgramFiles%\Mozilla Firefox\mozilla.cfg'/>

<check type='file' condition='sizeequals' value='2017'
       path='%ProgramFiles%\Mozilla Firefox\mozilla.cfg'/>

It gives me in the log file:

The path 'C:\Program Files\Mozilla Firefox\mozilla.cfg' exists: the test was successful
Finding size of C:\Program Files\Mozilla Firefox\mozilla.cfg|
Unable to get file size for C:\Program Files\Mozilla Firefox\mozilla.cfg : 'path' is undefined
Leaving getFileSize with size -1
The file 'C:\Program Files\Mozilla Firefox\mozilla.cfg' has size -1 - wanted 2017: the test fails

Regards.
-- 
Daniel Dehennin
RAIP de l'Orne



More information about the wpkg-users mailing list