title: how to change default siteName and its physical path using msdeploy
body: <p>Here i'm trying to automate publish the package for a web application to publish IIS on a remote server.
  Following things are done to make the package.</p>
  
  <p>Publish.proj.xml file:</p>
  
  <pre><code>&lt;Project ToolsVersion="4.0" DefaultTargets="Publish" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
      &lt;PropertyGroup&gt;
          &lt;ProjectSolutionFile&gt;Test.sln&lt;/ProjectSolutionFile&gt;
          &lt;Configuration&gt;Release&lt;/Configuration&gt;
      &lt;/PropertyGroup&gt;
  
      &lt;ItemGroup&gt;
          &lt;ProjectToBuild Include="$(ProjectSolutionFile)"&gt;
              &lt;Properties&gt;DeployOnBuild=true;Configuration=$(Configuration)&lt;/Properties&gt;
          &lt;/ProjectToBuild&gt;
      &lt;/ItemGroup&gt;
  
      &lt;Target Name="Publish"&gt;
          &lt;MSBuild Projects="@(ProjectToBuild)"/&gt;
      &lt;/Target&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>If i pass this Publish.proj.xml file to msbuild. it'll build the solution and will create the package with below included things,</p>
  
  <pre><code>1. PackageTmp (folder)
  2. Test.deploy.cmd
  3. Test.deploy.SetParameters.xml
  4. Test.SourceManifest.xml
  5. Test.zip
  </code></pre>
  
  <p>Test.SetParameters.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;parameters&gt;
    &lt;setParameter name="IIS Web Application Name" value="Default Web Site/Test_deploy" /&gt;
  &lt;/parameters&gt;
  </code></pre>
  
  <p>Test.SourceManifest.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;sitemanifest&gt;
    &lt;IisApp path="C:\Release\Package\PackageTmp" managedRuntimeVersion="v4.0" /&gt;
    &lt;setAcl path="C:\Release\Package\PackageTmp" setAclResourceType="Directory" /&gt;
    &lt;setAcl path="C:\Release\Package\PackageTmp" setAclUser="anonymousAuthenticationUser" setAclResourceType="Directory" /&gt;
  &lt;/sitemanifest&gt;
  </code></pre>
  
  <p>Now, i'm trying to install this package in a remote server to publish the package using below command,</p>
  
  <pre><code>SalesCatalogue.deploy.cmd /y /M:https://RemoteServer:8172/MSDeploy.axd /u:"Test" /p:Test123 -allowUntrusted /A:basic
  </code></pre>
  
  <p>It has created new virtual directory in IIS under Default Web Site->Test_deploy and package files are deployed in C:\inetpub\wwwroot\Test_deploy folder.</p>
  
  <p>My requirement is, <strong>Virtual directory name, applicatio Pool, destination physical deployment path are should be configurable.</strong> So that I can provide name whatever for virtual directory, can select desire application pool and can deploy in different path if required.</p>
  
  <p>How can i achieve this? Any one can suggest me.</p>
  
  <p>Thanks in advance.</p>