[wpkg-users] WPKG 1.1.2 (stable): Registry equals check failing for dword value 0xffffffff - sign issue

Mark Cooke m.p.cooke at bham.ac.uk
Fri May 21 13:05:06 CEST 2010


Hi all,

Just ran into a minor problem with:

  <check type="registry"
         condition="equals"
         path="Blah"
         value="0xffffffff" />

This doesn't seem to ever succeed with a match.  I've also tried 4294967295
instead of 0xffffffff.

The registry entry is a 32-bit DWORD (that holds an unsigned value).

I've worked around for the moment by using:

  <check type="registry"
         condition="equals"
         path="Blah"
         value="-1" />

as this appears to be wscript interpreting the 32-bit value as a signed
number.


This behaviour is present on 32bit and 64bit Windows 7, and also 32bit XP.

Cheers,

Mark





More information about the wpkg-users mailing list