title: Wix-Setting INSTALLDIR dynamically
body: <p>I have created a web setup msi for installing a website to iis. In product.wxs I have set the directory to WWWROOT</p>
  
  <pre><code>  &lt;Directory Id='TARGETDIR' Name='SourceDir'&gt;
    &lt;Directory Id="IISROOT" Name='WebDir'&gt;
       &lt;Directory Id='INSTALLDIR' Name='MyWebSetup'&gt;&lt;/Directory&gt;
    &lt;/Directory&gt;
  &lt;/Directory&gt;
  </code></pre>
  
  <p>During installation the user can provide desired name for virtual directory. If the user is entering any other name other than 'MyWebSetup' say 'MyWebSetup1', then in the IIS a virtual directory named 'MyWebSetup1' and a directory named 'MyWebSetup' gets listed. Now what I want is I need to get Name='MyWebSetup' with user entered name say 'MyWebSetup1'. I have tried using custom actions and many other to get this done, but was of no use. Please somebody can provide me with a very clear solution as I am new to Wix. Any helps appreciated.
  Thank you.</p>