title: MSDeploy override contentPath directory with manifest
body: <p>I'm trying to override the installation directory when using contentPath provider with an MSDeploy package that contains a manifest.</p>
  
  <p>I'm sure I've done this in the past, but just can't get it to work. </p>
  
  <p>What am I missing?</p>
  
  <p><strong>Manifest used to create package:</strong></p>
  
  <pre><code>&lt;siteManifest&gt;
    &lt;contentPath path="C:\packages" /&gt;
    &lt;runCommand path="do something here" /&gt;
  &lt;/siteManifest&gt;
  </code></pre>
  
  <p><strong>Command to install package:</strong></p>
  
  <p>This is straight from documentation <a href="http://technet.microsoft.com/en-us/library/dd569089%28v=ws.10%29.aspx" rel="nofollow">here</a>.</p>
  
  <pre><code>msdeploy -verb:sync 
           -source:package=deploy.zip 
           -dest:auto 
           -replace:objectName=contentPath,
                    targetAttributeName=path,
                    replace=C:\otherPath
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <p>Discovered this works for files, but still no joy for directories.</p>
  
  <pre><code>msdeploy -verb:sync 
           -source:package=deploy.zip 
           -dest:auto 
           -replace:objectName=filePath,
                    targetAttributeName=path,
                    match=somefile\.txt
                    replace=newfile.txt
  </code></pre>