Hi. I am in a situation where I need to include a bunch of files conditionally in Build Time .
I need some tips on using Pre-Processor variables to set a specific group of files to be included in the installer in Build Time.
I experimented with <? include Group1.wxi ?>, defining as folloiwng:
<Include>
<DirectoryRef Id="PLANTROOT">
<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>
</DirectoryRef>
<FeatureRef Id="PIWMain">
<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='ManagedLogClientMergeModule' />
<MergeRef Id='ECClassEditor' />
<MergeRef Id='ClassEditorRDSPlugin' />
<MergeRef Id='SQLDbECPluginMergeModule' />
<MergeRef Id='SQLDbECCEExtensionMergeModule' />
</Feature>
</FeatureRef>
That is, referring to the directory and function in the parent file. But wxi does not accept DirectoryRef and FeatureRef
Any help would be greatly appreciated.
Thanks and best regards
source
share