title: How to assign ANY value to WiX variable?
body: <p>Imagine you have a variable called <code>programVersion</code>. We use this variable to publish on registry the version of our application in HKLM. </p>
  
  <p>We have some conditions to check if a specific version <strong>OF ANOTHER PROGRAM</strong> is installed on our machine checking this registry values:</p>
  
  <pre><code>&lt;Property Id="ANOTHER_APP_INSTALLED"&gt;
    &lt;RegistrySearch Id="AnotherAppInstalled" Root="HKLM"
                      Key="$(var.keyPathProgram)$(var.AnotherProgramVersion)"
                      Name="Path"
                      Type="raw" /&gt;
  &lt;/Property&gt;
  </code></pre>
  
  <p>But now I created a new version of the OTHER program, and I want to check if the older version or this newer exist on my registry on my NEW application. So I need to check both versions like this:</p>
  
  <pre><code>&lt;Property Id="ANOTHER_APP_INSTALLED"&gt;
    &lt;RegistrySearch Id="AnotherAppInstalled" Root="HKLM"
                      Key="$(var.keyPathProgram)$(var.AnotherProgramVersion)"
                      Name="Path"
                      Type="raw" /&gt;
  &lt;/Property&gt;
  &lt;Property Id="ANOTHER_APPV11_INSTALLED"&gt;
    &lt;RegistrySearch Id="AnotherAppV11Installed" Root="HKLM"
                      Key="$(var.keyPathProgram)$(var.AnotherProgramVersion11)"
                      Name="Path"
                      Type="raw" /&gt;
  &lt;/Property&gt;
  </code></pre>
  
  <p>Is there any way to put an asterisk after a variable, that accepts any value after it? Something like this:</p>
  
  <pre><code>&lt;Property Id="ANOTHER_APP_INSTALLED"&gt;
    &lt;RegistrySearch Id="AnotherAppInstalled" Root="HKLM"
                      Key="$(var.keyPathProgram)$(var.AnotherProgramVersion)*"
                      Name="Path"
                      Type="raw" /&gt;
  &lt;/Property&gt;
  </code></pre>
  
  <p>Here's the way I check if any of them is installed:</p>
  
  <pre><code>&lt;![CDATA[ ANOTHER_APP_INSTALLED or ANOTHER_APPV11_INSTALLED ]]&gt;
  </code></pre>
  
  <p><strong>RECAP:</strong></p>
  
  <p>So I have an installed program on my machine that checks if another application is installed in any version, not my own application. I need it to check if that other application is installed in any of its possible versions.</p>
  
  <p><strong>EDIT:</strong> I need to ckeck if v1, v1.1, v1.2, v1.3... is installed. But I need to allow all of them to be a possible installed version, not only one of them. I need to check for every version that exists of the product. </p>
  
  <p>I know this is not the regular behaviour of WiX, but I need it to behave like that.</p>