Changes

Jump to: navigation, search

Packages.xml:French

2,087 bytes added, 08:37, 16 October 2012
Execute
===Execute===
 
Execute allows you to execute any script which checks if an application is installed. WPKG checks the exit code of the script to determine the existence of the particular software package. This type of check also allows very complex checks. For example there is a limitation of the RegRead method used by WPKG's Registry checks to query registry values which contain backslashes '\'. Now you can execute a batch script which checks for such registry values using 'reg query ...'. There are several possible conditions available for execute checks:
 
exitcodesmallerthan - This checks the exit code of the executed script. If the exit code is smaller than the supplied value, the condition returns true.
 
exitcodelessorequal - This checks the exit code of the executed script. If the exit code is less or equal to the supplied value, the condition returns true.
 
exitcodeequalto - This checks the exit code of the executed script. If the exit code is equal to the supplied value, the condition returns true.
 
exitcodegreaterorequal - This checks the exit code of the executed script. If the exit code is greater than of equal to the supplied value, the condition returns true.
 
exitcodegreaterthan - This checks the exit code of the executed script. If the exit code is greater than the supplied value, the condition returns true.
 
Examples:
 
This evaluates true if the exit code is negative
 
<check type="execute" path="\\path\to\script.cmd" condition="exitcodesmallerthan" value="0">
 
This evalueates true if exit code is 0 or negative
 
<check type="execute" path="\\path\to\script.cmd" condition="exitcodelessorequal" value="0" >
 
This evaluates true only if exit code is exactly 0
 
<check type="execute" path="\\path\to\script.cmd" condition="exitcodeequalto" value="0" >
 
This evaluates true if exit code is 0 or any positive number
 
<check type="execute" path="\\path\to\script.cmd" condition="exitcodegreaterorequal" value="0" >
 
This evaluates true if exit code is any positive number
 
<check type="execute" path="\\path\to\script.cmd" condition="exitcodegreaterthan" value="0" >
===Host===
12
edits

Navigation menu