[wpkg-users] [Bug 102] registry checks fail if the value name contains backslashes

bugzilla-daemon at bugzilla.wpkg.org bugzilla-daemon at bugzilla.wpkg.org
Sat Apr 5 20:12:32 CEST 2008


http://bugzilla.wpkg.org/show_bug.cgi?id=102


Rainer Meier <r.meier at wpkg.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|LATER                       |WORKSFORME




--- Comment #4 from Rainer Meier <r.meier at wpkg.org>  2008-04-05 20:12:29 ---
I just released WPKG 1.1.0-M3 (see Bug 95). It includes a change which allows
to specify a new type of checks: execute.

Using it you can execute any external script/tool to verify if your program is
installed correctly.

So you might just call 'reg query' instead of using the built-in method. This
also allows you to use backslashes within the value. If you need to parse the
output you might also wrap the reg query call into a cmd-script.

Here are the relevant changes of WPKG 1.1.0-M3:

NEW: Added new check type: "execute". This allows you to execute any script
     which checks if an application is installed - based on the exit code of
     the script.
     Usage:
     type="execute" path="\\path\to\script.cmd"
         condition="exitcodesmallerthan" value="0"
             Evaluates true if the exit code is negative

     type="execute" path="\\path\to\script.cmd"
         condition="exitcodelessorequal" value="0"
             Evalueates true if exit code is 0 or negative

     type="execute" path="\\path\to\script.cmd"
         condition="exitcodeequalto" value="0"
             Evaluates true only if exit code is exactly 0

     type="execute" path="\\path\to\script.cmd"
         condition="exitcodegreaterorequal" value="0"
             Evaluates true if exit code is 0 or any poitive number

     type="execute" path="\\path\to\script.cmd"
         condition="exitcodegreaterthan" value="0"
             Evaluates true if exit code is any positive number

     This type of check also allows very complex checks. For example there is a
     limitation of the RegRead method used by WPKG to query registry values
     which contain backslashes '\'. Now you can execute a batch script which
     checks for such registry values using 'reg query ...'.


Setting this to "WORKSFORME" as I think this solution/workaround is absolutely
acceptable, especially since it is only required in very few cases.

Any feedback would be appreciated as well.

Thanks.


-- 
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the wpkg-users mailing list