title: Specify different path for provider iisApp when creating package with msdeploy
body: <h1>How I make the package</h1>
  <p>I make the msdeploy package like this:</p>
  <pre><code>msdeploy.exe -verb:sync -source:iisApp=c:\content\ -dest:package=c:\pkg.zip
  </code></pre>
  <p>The <em>c:\content</em> directory has a single <em>index.html</em> file.</p>
  <h1>Result</h1>
  <p>The output looks like this:</p>
  <pre><code>Info: Adding package (package).
  Info: Adding child iisApp (c:\content\).
  Info: Adding child createApp (c:\content\).
  Info: Adding child contentPath (c:\content\).
  Info: Adding child dirPath (c:\content\).
  Info: Adding child filePath (c:\content\index.html).
  Total changes: 6 (6 added, 0 deleted, 0 updated, 0 parameters changed, 0 bytes copied)
  </code></pre>
  <p>If I extract the content of <em>c:\pkg.zip</em> into directory <em>c:\pkg</em> it looks like this:</p>
  <pre><code>archive.xml
  systemInfo.xml
  Content\c_C
  Content\c_C\content
  Content\c_C\content\index.html
  </code></pre>
  <p>If I dump the package like this:</p>
  <pre><code>msdeploy.exe -verb:dump -source:package=c:\pkg.zip -xml
  </code></pre>
  <p>I get:</p>
  <pre><code>&lt;output&gt;
      &lt;MSDeploy.iisApp&gt;
          &lt;iisApp path=&quot;c:\content\&quot;&gt;
              &lt;createApp 
                  path=&quot;c:\content\&quot; 
                  isDest=&quot;False&quot; 
                  managedRuntimeVersion=&quot;&quot; 
                  enable32BitAppOnWin64=&quot;&quot; 
                  managedPipelineMode=&quot;&quot; 
                  applicationPool=&quot;&quot; 
                  appExists=&quot;True&quot; /&gt;
              &lt;contentPath path=&quot;c:\content\&quot;&gt;
                  &lt;dirPath 
                      path=&quot;c:\content\&quot; 
                      securityDescriptor=&quot;D:&quot; 
                      parentSecurityDescriptors=&quot;&quot; 
                      attributes=&quot;Directory&quot;&gt;
                      &lt;filePath 
                          path=&quot;index.html&quot; 
                          size=&quot;0&quot; 
                          attributes=&quot;Archive&quot; 
                          lastWriteTime=&quot;07/07/2011 20:58:00&quot; 
                          securityDescriptor=&quot;D:&quot; /&gt;
                  &lt;/dirPath&gt;
              &lt;/contentPath&gt;
          &lt;/iisApp&gt;
      &lt;/MSDeploy.iisApp&gt;
  &lt;/output&gt;
  </code></pre>
  <hr />
  <h1>How I want it to be</h1>
  <p>I don't want the package to depend upon the current location of the site files. I'm going to send the package to a customer, and I don't want any detailes about the packaging process to get shipped with the package. I want the content of the package <em>c:\pkg.zip</em> to be like this:</p>
  <pre><code>archive.xml
  systemInfo.xml
  Content\index.html
  </code></pre>
  <p>I want the package to be able to create an IIS application, so I need a virtual path. I also want to install the package into the default location. So the physical path also has to change. I want the dump to look something like this:</p>
  <pre><code>&lt;output&gt;
      &lt;MSDeploy.iisApp&gt;
          &lt;iisApp path=&quot;Default Web Site\Site&quot;&gt;
              &lt;createApp 
                  path=&quot;Default Web Site\Site&quot;
                  isDest=&quot;False&quot; 
                  managedRuntimeVersion=&quot;&quot; 
                  enable32BitAppOnWin64=&quot;&quot; 
                  managedPipelineMode=&quot;&quot; 
                  applicationPool=&quot;&quot; 
                  appExists=&quot;False&quot; /&gt;
              &lt;contentPath path=&quot;c:\inetpub\wwwroot\site&quot;&gt;
                  &lt;dirPath 
                      path=&quot;c:\inetpub\wwwroot\site&quot; 
                      securityDescriptor=&quot;D:&quot; 
                      parentSecurityDescriptors=&quot;&quot; 
                      attributes=&quot;Directory&quot;&gt;
                      &lt;filePath 
                          path=&quot;index.html&quot; 
                          size=&quot;0&quot; 
                          attributes=&quot;Archive&quot; 
                          lastWriteTime=&quot;07/07/2011 20:58:00&quot; 
                          securityDescriptor=&quot;D:&quot; /&gt;
                  &lt;/dirPath&gt;
              &lt;/contentPath&gt;
          &lt;/iisApp&gt;
      &lt;/MSDeploy.iisApp&gt;
  &lt;/output&gt;
  </code></pre>
  <p>I have changed the <em>iisApp</em> and <em>createApp</em> provider <em>path</em> attributes to be <code>Default Web Site\Site</code>. And I changed the <em>contentPath</em> and <em>dirPath</em> provider <em>path</em> attributes to be <code>c:\inetpub\wwwroot\site</code>.</p>
  <hr />
  <h1>Questions</h1>
  <ul>
  <li>How can I accomplish this?</li>
  </ul>