mvermeulen
08-12-2004, 11:02 AM
I am trying to setup a conditional step that checks for the existence of a folder and if true, it skips all of the child steps. Current execution evaluates the conditional rule just fine but it executes the child anyway.
Here is the conditional step:
<step action='Group' type='0'>
<condcomparison type='3'>6</condcomparison>
<condexpr>[NOT vbld_FSO.FolderExists("%fiservcbspath%\%appname1%\%appversion1%\%instname %\CommunicatorErrors")] </condexpr>
<description>Check for existence of CommunicatorErrors folder and create if doesn't exist</description>
<indent type='3'>1</indent>
<name>Create Error Folders</name>
</step>
This is the child:
<step action='Run Program' type='0'>
<command>%doscmd% md %fiservcbspath%\%appname1%\%appversion1%\%instname %\CommunicatorErrors</command>
<condexpr>[NOT vbld_FSO.FolderExists("%fiservcbspath%\%appname1%\%appversion1%\%instname %\CommunicatorErrors")] </condexpr>
<indent type='3'>2</indent>
<name>CommunicatorErrors</name>
<outputfrom type='3'>1</outputfrom>
</step>
Thank you!
Here is the conditional step:
<step action='Group' type='0'>
<condcomparison type='3'>6</condcomparison>
<condexpr>[NOT vbld_FSO.FolderExists("%fiservcbspath%\%appname1%\%appversion1%\%instname %\CommunicatorErrors")] </condexpr>
<description>Check for existence of CommunicatorErrors folder and create if doesn't exist</description>
<indent type='3'>1</indent>
<name>Create Error Folders</name>
</step>
This is the child:
<step action='Run Program' type='0'>
<command>%doscmd% md %fiservcbspath%\%appname1%\%appversion1%\%instname %\CommunicatorErrors</command>
<condexpr>[NOT vbld_FSO.FolderExists("%fiservcbspath%\%appname1%\%appversion1%\%instname %\CommunicatorErrors")] </condexpr>
<indent type='3'>2</indent>
<name>CommunicatorErrors</name>
<outputfrom type='3'>1</outputfrom>
</step>
Thank you!