wix站点无法在IIS7中创建

时间:2012-11-27 10:37:44

标签: wix wix3.6

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
 xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension">
  <Product Id="e6c96829-cb0e-443c-843d-50f9c497f0b6" Name="Sample"
       Language="1033" Version="1.0.0.0" Manufacturer="Me"
       UpgradeCode="b3b0a43f-5a27-4974-b9d4-87364345aec0">
<Package InstallerVersion="200" Compressed="yes" />
<Media Id="1" Cabinet="WixSample.cab" EmbedCab="yes" />
<iis:WebSite Id='DefaultWebSite' Description='Default Web Site'>
  <iis:WebAddress Id='AllUnassigned' Port='80' />
</iis:WebSite>
<Directory Id="TARGETDIR" Name="SourceDir">
  <Directory Id="INSTALLDIR" Name="Sample">
    <Directory Id="MyWebSiteDir" Name="MyWebSite" />        
  </Directory>
</Directory>
<Feature Id="SampleFeature" Title="Sample" Level="1">
</Feature>
</Product>
</Wix>

这是我运行的代码。它没有显示任何错误。但是当我运行MSI时,该站点不是在IIS中创建的。 IIS版本为7.而WIX版本为3.6。 即便我尝试http://www.wintellect.com/cs/blogs/jrobbins/archive/2011/01/25/install-a-new-virtual-directory-to-default-web-site-with-wix.aspx中的代码仍然无效

0 个答案:

没有答案