title: Can you set TARGETDIR to be a command line parameter?
body: <p>I have generated an msi which I'd like to be able to change the default installation directory of and I know that you can change WIX properties using command line parameters, but I can't seem to get this working for TARGETDIR like this:</p>
  
  <blockquote>
    <p>Installer.msi TARGETDIR=C:\</p>
  </blockquote>
  
  <p>My Directory fragment is:</p>
  
  <pre><code>&lt;Fragment&gt;
      &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
        &lt;Directory Id="SystemFolder"/&gt;
  
        &lt;!-- Desktop--&gt;
        &lt;Directory Id="DesktopFolder"/&gt;
  
        &lt;Directory Id="ProgramFilesFolder"&gt;
          &lt;Directory Id="DIR_Company" Name="Company Name"&gt;
            &lt;Directory Id="DIR_SubDir" Name="Sub Directory" &gt;
              &lt;Directory Id="INSTALLDIR" Name="My Product"&gt;
                &lt;Directory Id="DIR_ONE" Name="ONE"  /&gt;
                &lt;Directory Id="DIR_TWO" Name="TWO" /&gt;
                &lt;Directory Id="DIR_THREE" Name="THREE" /&gt;
              &lt;/Directory&gt;
            &lt;/Directory&gt;
          &lt;/Directory&gt;
        &lt;/Directory&gt;
      &lt;/Directory&gt;
  
    &lt;/Fragment&gt;
  </code></pre>
  
  <p>Is this just not possible, or is it my syntax?</p>