2013-11-20 156 views
0

我嘗試將Web應用程序安裝到虛擬目錄中,即「c:\ Inetpub \ XYZ」。但它安裝到「D:\ XYZ」或Mysource目錄是「D:\」。任何機構可以幫助我如何安裝到IIS虛擬目錄(「C:\ Inetpub \ XYZ」)中的網站位置(XYZ)。Wix Web應用程序問題安裝到IIS虛擬目錄

<Directory Id="INSTALLDIR" Name="XYZ"> 


     <Component Id="VirtualDirectoryComponent" Guid="DED95D72-52AE-4258-9D50-687E65449F95"> 
     <CreateFolder /> 


     <iis:WebVirtualDir Id="My.VirtualDir" Alias="[WEB_APP_NAME]" Directory="INSTALLDIR" WebApplication="" WebSite="DefaultWebSite"> 
      <iis:WebApplication Id="Application" Name="[WEB_APP_NAME]" /> 
      <iis:WebDirProperties Id="WebSite_Properties" AnonymousAccess="yes" WindowsAuthentication="no" DefaultDocuments="Default.aspx" Script="yes" 
           Read="yes" /> 
     </iis:WebVirtualDir> 


     </Component> 

</Directory> 
</Directory> 

回答

0

嘗試用以下

Directory Id='TARGETDIR' Name='SourceDir'> 
<!-- Install into the ISS root directory --> 
<Directory Id="IISROOT" Name='WebDir'> 
<!-- Here's this installers install location. --> 
<Directory Id='INSTALLDIR' Name='XYZ'></Directory> 
</Directory> 

更換目錄
相關問題