>
> I'm testing a check type="execute" to install software if the computer is 
> member of an MS AD group.
>
> This check works well alone::
>          <check type="execute" 
> path='\\sc18\Sources\WPKG\Packages\tools\groupmember.cmd "G WPKG tstpkg"' 
> condition="exitcodeequalto" value="0" />
> It installs the package if the computer is member of the AD Group "G WPKG 
> tstpkg"
>
> However it will Allways install the package as the condition will allways be 
> true.
> So I need to add a second condition so it will check if the package is not 
> already installed. This is where I bug::
>
> <check type="logical" condition="and">
>          <check type="execute" 
> path='\\sc18\Sources\WPKG\Packages\tools\groupmember.cmd "G WPKG tstpkg"' 
> condition="exitcodeequalto" value="0" />
>          <check type="file" condition="exists" path="c:\tstpkg\tstpkg.dat" />
> </check>
>

AND is the default condition for checks, there is no need to explicitly specify 
it.

<check type="execute" path='\\sc18\Sources\WPKG\Packages\tools\groupmember.cmd 
"G WPKG tstpkg"' condition="exitcodeequalto" value="0" />
<check type="file" condition="exists" path="c:\tstpkg\tstpkg.dat" />

The above should be sufficient.

---
Stefan
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users@lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users

Reply via email to