Adjusting Condition Snippets

<< Click to Display Table of Contents >>

RayPack > 7.3 u6 > User Guide > Advanced Topics 

Adjusting Condition Snippets

Snippets displayed in the Condition builder are fully customizable. To add new ones or edit/remove existing ones, open the XML file in any XML editor:

 

<PackPointDir>\Conditions\Snippets.xml

 

By default, this location is C:\RayPack\PackPoint\Conditions\Snippets.xml

Below is a short excerpt of the file content:

 

<?xml version="1.0" encoding="utf-8" ?>

<Snippets>

 <Snippet DisplayName="Product is already installed?">

   <Condition>Installed</Condition>

 </Snippet>

 <Snippet DisplayName="Product is not yet installed?">

   <Condition>NOT Installed</Condition>

 </Snippet>

 <Snippet DisplayName="Product is being removed?">

   <Condition>REMOVE ~= "ALL"</Condition>

 </Snippet>

 <Snippet DisplayName="Windows 10 or newer?">

   <Condition>VersionNT &gt;= 603</Condition>

 </Snippet>

 <!-- etc. -->

</Snippets>

 

Using the template, add new elements to the Snippets collection. RayPack has to be restarted in order to apply the changes.

 

papercliper

Note:

Some characters are not allowed in XML files. Escape them using hexadecimal code (for example &gt; instead of >, &amp; instead of &) or use the CDATA syntax to mark the unescaped areas.