title: How can I use Wix Properties
body: <p>I'm working with <code>Wix v4</code> to create a msi package. I had the problem, that I must set a Property in a CustomAction (C#) at the beginning of the installation.</p>
  
  <p>This works fine, but now I'm a little bit confused. The property can't be used in all my cases.</p>
  
  <pre><code>&lt;Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:util="http://wixtoolset.org/schemas/v4/wxs/util"&gt;
  </code></pre>
  
  <p>
      </p>
  
  <pre><code>&lt;Property Id="ANUMMER" Value="A2000-0000" /&gt;
  
  &lt;Binary Id='CustomActionReadConfig' SourceFile='...'/&gt;
  
  &lt;InstallUISequence&gt;
    &lt;!-- Set the property over session["ANUMMER"] = "..." --&gt;
    &lt;Custom Action="CustomActionReadConfig" Before="AppSearch" /&gt;
  &lt;/InstallUISequence&gt;
  </code></pre>
  
  <p>The ini file hasn't a problem</p>
  
  <pre><code>    &lt;IniFile Id="Programm.ini" Action="createLine" Key="ANUMMER" Name="Programm.ini" Section="Programm" Value="[ANUMMER]" Directory="Dir" /&gt;
  </code></pre>
  
  <p>For the directory I found the follow workaround</p>
  
  <pre><code>&lt;SetDirectory Action="SetApplicationFolder" Id="APPLICATIONFOLDER" Value="[ProgramFilesFolder]\[COMPANYNAME]\[MYPROGRAMM]\[ANUMMER]"  Sequence="ui"/&gt;
  </code></pre>
  
  <p>But the shortcuts can' use it and I didn't find a workaround</p>
  
  <pre><code>&lt;Shortcut Id="DesktopShortcut" Directory="DesktopFolder" Name="Programm [ANUMMER]" WorkingDirectory="Dir" Advertise="yes" Icon="DesktopIcon.exe" IconIndex="0" /&gt;
      &lt;Shortcut Id="DesktopShortcut" Directory="DesktopFolder" Name="Programm" WorkingDirectory="Dir" Advertise="yes" Icon="StartMenuIcon.exe" IconIndex="0"&gt;
        &lt;ShortcutProperty Key="Name" Value="Programm [ANUMMER]"/&gt;
      &lt;/Shortcut&gt;
  </code></pre>
  
  <p>Like this, I need this property in some further cases. Do I use it wrong or do I have to use an special escape combination? Can't I use properties in Name attributes? Is there an other way, to use the input as variable witch I can set in the CustomAction? Or what is the basic problem, that I can't use such a custom runtime property in sutch ways?</p>
  
  <p>Thanks for help</p>