title: Deploy Webservice using InstallAware
body: <p>I have created WCF web service and created setup using InstallAware so that our customer just run the setup and it will deploy web service in IIS. My setup create virtual directory under "Default Website" in IIS. Every thing is work fine, my setup create the virtual directory under "Default Website" and point to the correct path but only it gives error before setup finished. Following is the code which create the virtual directory in IIS.</p>
  
  <pre><code>if Variable SUCCESS not Equals ERROR
      if Variable SUCCESS not Equals CANCEL
        Run Program $SUPPORTDIR$\InsertToken1.bat  (WAIT)
        Get IIS Index for Site "Default Web Site" into DEFAULTWEBSITEINDEXVAR
        Create Virtual Folder "WebService" in IIS Site #$DEFAULTWEBSITEINDEXVAR$, pointing to physical location $WWWROOTDIR$WebService
        Get System Setting IIS Anonymous User Account into INETUSR
        Set Read Permissions on File System Object "$WWWROOTDIR$\WebService" for $INETUSR$
      end
    end
  </code></pre>
  
  <p>After debugging MSI Code I found that the when following line execute it gives the error</p>
  
  <pre><code>Create Virtual Folder "WebService" in IIS Site #$DEFAULTWEBSITEINDEXVAR$, pointing to physical location $WWWROOTDIR$WebService
  </code></pre>
  
  <p>It gives following error</p>
  
  <p><a href="https://i.stack.imgur.com/sJ3x3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/sJ3x3.png" alt="enter image description here"></a></p>