Iis 7 使用IIS 7.5和WiX 3.7在服务器2008 R2上创建Web应用程序池和网站
网站未按预期创建。请看图片。正在为CoreWebServicesV3创建两个虚拟目录,一个指向默认应用程序池,另一个指向我创建的应用程序池Iis 7 使用IIS 7.5和WiX 3.7在服务器2008 R2上创建Web应用程序池和网站,iis-7,wix,application-pool,wix3.7,Iis 7,Wix,Application Pool,Wix3.7,网站未按预期创建。请看图片。正在为CoreWebServicesV3创建两个虚拟目录,一个指向默认应用程序池,另一个指向我创建的应用程序池 您是否尝试过缩小问题范围?我做了一些更改,现在显示良好。但在我测试之前,我不确定它是否有效。这就是我所做的;注释掉了“MyWebVirtualDRCMP”组件,并从中删除了和标记。然后它就表现得很好。 <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="Pro
您是否尝试过缩小问题范围?我做了一些更改,现在显示良好。但在我测试之前,我不确定它是否有效。这就是我所做的;注释掉了“MyWebVirtualDRCMP”组件,并从中删除了和标记。然后它就表现得很好。
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLLOCATION" Name="CoreWebservicesV3" >
<Directory Id="WEBSITE" Name="$(var.CWSProductVersion)"/>
</Directory>
</Directory>
</Directory>
<Feature Id="ProductFeature" Title="CoreWebservicesMSI" Level="1" Display="expand" ConfigurableDirectory="INSTALLLOCATION">
<Component Directory="INSTALLLOCATION">
<RegistryValue Root="HKCU" Key="Websites\CoreWebservices\3.0" Name="Remembered" Value="[INSTALLLOCATION]" Type="string" />
<RemoveFolder Id="CleanApplicationFolder" On="uninstall"/>
</Component>
<Feature Id="MainContent" Title="CoreWebservices Website" Description="The CWS website content" Level="1">
<ComponentGroupRef Id="MyWebIssConfiguration" />
<ComponentGroupRef Id="CoreWebservices" />
</Feature>
</Feature>
<ComponentGroup Id="MyWebIssConfiguration">
<ComponentRef Id="MyWebAppPoolCmp"/>
<ComponentRef Id="MyWebsiteCmp"/>
<ComponentRef Id="MyWebVirtualDirCmp"/>
</ComponentGroup>
<DirectoryRef Id="INSTALLLOCATION">
<Component Id="MyWebsiteCmp" Guid="{751DEB01-ECC1-48ff-969A-65BCEE9E0528}" KeyPath="yes">
<iis:WebSite Id="CoreWebservicesV3" Description='CoreWebservicesV3' Directory='INSTALLLOCATION' >
<iis:WebAddress Id="AllUnassigned" Port="80" />
</iis:WebSite>
</Component>
<Component Id="MyWebAppPoolCmp" Guid="{751DEB01-ECC1-48ff-869A-65BCEE9E0529}" KeyPath="yes">
<util:User Id="MyWebAppPoolUser"
CreateUser="no"
Name="[IDENTITY_NAME]"
Password="[IDENTITY_PWD]" RemoveOnUninstall="yes"
Domain="[IDENTITY_DOMAIN]" />
<iis:WebAppPool Id="CWSWebAppPool"
Name="[WEB_APP_NAME]"
ManagedRuntimeVersion="v4.0"
ManagedPipelineMode="Integrated"
Identity="other"
User="MyWebAppPoolUser" >
<iis:RecycleTime Value="00:00"/>
</iis:WebAppPool>
</Component>
<Component Id="MyWebVirtualDirCmp" Guid="{751DEB01-ECC1-48ff-869A-65BCEE9E0528}" KeyPath="yes" >
<iis:WebVirtualDir Id="MyWebVirtualDir" Alias="[VIRTUAL_DIR_VAL]" Directory="INSTALLLOCATION" WebSite="CoreWebservicesV3" >
<iis:WebDirProperties Id="MyWebVirtDirProperties" AnonymousAccess="no" BasicAuthentication="no" WindowsAuthentication="yes" />
<iis:WebApplication Id="MyWebWebApplication" Name="[VIRTUAL_DIR_VAL]" WebAppPool="CWSWebAppPool" />
</iis:WebVirtualDir>
</Component>
</DirectoryRef>