我有3个wxi文件
包括ForARIAVersion.wxi:
<?xml version="1.0" encoding="utf-8"?>
<Include>
<?include Additional.wxi?>
<?include Features.wxi?>
</Include>
Additional.wxi:
<?xml version="1.0" encoding="utf-8"?>
<Include>
<ComponentGroup Id="CMPGRP_Additional.A10">
<ComponentRef Id="CMP_ExportDonneesPourCSISBatA10" />
</ComponentGroup>
<ComponentGroup Id="CMPGRP_Additional.A11">
<ComponentRef Id="CMP_ExportDonneesPourCSISBatA11" />
</ComponentGroup>
<ComponentGroup Id="CMPGRP_Additional.v13">
<ComponentRef Id="CMP_ExportDonneesPourCSISBatA11" />
</ComponentGroup>
<ComponentGroup Id="CMPGRP_Additional.v13.6">
<ComponentRef Id="CMP_ExportDonneesPourCSISBatA11" />
</ComponentGroup>
</Include>
Features.wxi:
<?xml version="1.0" encoding="utf-8"?>
<Include>
<Feature Id="ProductFeature10" Title="$(var.ProductId)" Level="1">
<ComponentGroupRef Id="CMPGRP_Additional.A10" />
</Feature>
<Feature Id="ProductFeature11" Title="$(var.ProductId)" Level="1">
<ComponentGroupRef Id="CMPGRP_Additional.A11" />
</Feature>
<Feature Id="ProductFeature13" Title="$(var.ProductId)" Level="1">
<ComponentGroupRef Id="CMPGRP_Additional.v13" />
</Feature>
<Feature Id="ProductFeature13.6" Title="$(var.ProductId)" Level="1">
<ComponentGroupRef Id="CMPGRP_Additional.v13.6" />
</Feature>
</Include>
Product.wxs:
<Product Id="*" Name="$(var.ProductName)" Language="1033" Version="$(var.ProductVersion)" Manufacturer="$(var.Manufacturer)" UpgradeCode="$(var.UpgradeId)">
<Package InstallerVersion="200" Compressed="yes" Description="$(var.ProductName) $(var.ProductVersion)" />
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
<Property Id="ALLUSERS" Value="1" />
<PropertyRef Id="OSPVersion" />
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />
<SetProperty Id="INSTALLDLL" Value="[INSTALLDIR]" After="CostInitialize"/>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder" Name='PFiles'>
<Directory Id="THEFOLDER" Name="Varian">
<Directory Id="ARIAIC" Name="ARIA IC">
<Directory Id ="INSTALLDIR" Name="$(var.ProductId)">
<Directory Id="HL7Acceptance" Name="acceptance"></Directory>
<Directory Id="BatchCSIS" Name="batchExportDonneesPourCSIS">
<Directory Id="scriptBatchCSIS" Name="script"></Directory>
<Directory Id="exportBatchCSIS" Name="export"></Directory>
</Directory>
<Directory Id="Data" Name="data"></Directory>
<Directory Id="INSTALLDLL" />
</Directory>
</Directory>
</Directory>
</Directory>
</Directory>
<?include ../../Shared/setup/IncludesForServerApplication.wxi?>
</Product>
当IncludesForARIAVersion.wxi被添加到product.wxs时我有错误:
错误LGHT0204:ICE21:组件:'CMP_ExportDonneesPourCSISBatA10'不属于任何功能。 错误LGHT0204:ICE21:组件:'CMP_ExportDonneesPourCSISBatA11'不属于任何功能。
这些组件是在Features.wxi中声明的。我该怎么做才能解决这个问题?