title: How to use WIX's SetDirectory correctly
body: <p>I have a fragment that handles the installation location for my app, however I want to install to a custom location (C:\PtecMonitor) vs Program Files(x86)....</p>
  <pre><code>&lt;Fragment&gt;
     &lt;Directory Id=&quot;TARGETDIR&quot; Name=&quot;SourceDir&quot;&gt;
         &lt;Directory Id=&quot;WINDOWSVOLUME&quot;&gt;
           &lt;Directory Id=&quot;INSTALLLOCATION&quot; Name=&quot;PtecMonitor&quot; /&gt;
         &lt;/Directory&gt;
       &lt;Directory Id=&quot;ProgramMenuFolder&quot;&gt;
         &lt;Directory Id=&quot;ApplicationProgramsFolder&quot; Name=&quot;Ptec Share Monitor&quot;/&gt;
       &lt;/Directory&gt;
     &lt;/Directory&gt;
     &lt;SetDirectory Id=&quot;WINDOWSVOLUME&quot; Name=&quot;[WindowsVolume]&quot; /&gt;
  &lt;/Fragment&gt;
  </code></pre>
  <p>This throws up an error &quot;<strong>The SetDirectory/@Value attribute was not found; it is required.</strong>&quot;</p>
  <p>Where is SetDirectory supposed to be set in order for this to work?</p>