Changes

Logical tests

722 bytes removed, 02:10, 14 October 2010
no edit summary
</check>
</pre>
 
== embedding logical conditions ==
Embedding conditions is useful for more complex install requirements.
This tests for an existing Firefox installation AND the non-existence of the Adobe Flash Plugin.
<pre>
<check type="logical" condition="and">
<check type="logical" condition="not">
<check type="registry" condition="exists" path="HKLM\SOFTWARE\Mozilla\Mozilla Firefox\CurrentVersion" />
</check>
<check type="registry" condition="exists" path="HKLM\SOFTWARE\Macromedia\FlashPlayerPlugin\Version"/>
</check>
</pre>
The install command can be used to install Adobe Flash Plugin if the user has Mozilla with no plugin.
You can also extend this to check for other browsers like Chrome, Safari, etc.
[[category:Documentation]]
Anonymous user