嗨 我在這種情況下我需要在構建時有條件地包含一堆文件。Wix:在構建時有條件地添加文件
我需要一些提示來使用預處理器變量來設置Build Time中包含在安裝程序中的特定文件組。
我嘗試用<? include Group1.wxi ?>
而定義諸如folloiwng:
<Include>
<DirectoryRef Id="PLANTROOT">
<!--Adding Plugins======= Start ==-->
<Directory Id="Plugins" Name="Plugins">
<Directory Id="PIW_Plugin" Name="PIW">
<Merge Id='PIWtoIDGNConverter' Language='0' SourceFile='PIWtoIDGNConverter.msm' FileCompression='yes' DiskId='1' />
<Directory Id="Dir_ECFramework" Name="ECFramework" >
<Merge Id='ECFrameworkMergeModule' Language='0' SourceFile='ECFrameworkMergeModule.msm' FileCompression='yes' DiskId='1' />
</Directory>
</Directory>
</Directory>
</Directory>
<!--Adding Plugins=======Stop==-->
</DirectoryRef>
<FeatureRef Id="PIWMain">
<!--Sub Feature for PIW 2 IDGN Converter Plugin-->
<Feature Id="PIW_imodel_OWL_Plugin" AllowAdvertise="no" Description="PIW i-model & OWL" Display="expand" Level="1" Title="PIW i-model & OWL" InstallDefault="followParent">
<MergeRef Id='PIWtoIDGNConverter' />
<MergeRef Id='ECFrameworkMergeModule' />
<MergeRef Id='ECObjectsMergeModule' />
<MergeRef Id='PlatformSdkBinariesMergeModule' />
<!-- <MergeRef Id='ECFW_LicenseClient' /> -->
<MergeRef Id='ManagedLogClientMergeModule' />
<MergeRef Id='ECClassEditor' />
<MergeRef Id='ClassEditorRDSPlugin' />
<MergeRef Id='SQLDbECPluginMergeModule' />
<MergeRef Id='SQLDbECCEExtensionMergeModule' />
</Feature>
</FeatureRef>
也就是說,引用的目錄和功能在父文件。但wxi不接受DirectoryRef和FeatureRef
任何幫助將不勝感激。
感謝和問候