Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#21 How to: In Module use ComponentGroup from Fragment

open
nobody
None
5
2012-09-15
2009-11-13
minskowl
No

I harvest by Parafin huge directory. It's create such file SDK.wxi
<Include>
<Fragment>
<ComponentGroup Id="group_SDK">
<ComponentRef Id="comp_SDK_0"/>
<ComponentRef Id="comp_SDK_1"/>
....
<ComponentRef Id="comp_SDK_751"/>
</ComponentGroup>
<DirectoryRef Id="INSTALLDIR">
<Directory Id="dir_Intellexer_SDK_0" Name="Intellexer SDK">
<Component Id="comp_SDK_0" DiskId="1" KeyPath="yes" Guid="3DEDAE66-12F2-4E7A-BDE7-A16EFE1017AB">
<File Id="file_SDK_0" Source="$(var.SDK.Path)\\ISDK_License.xml"/>
</Component>
<Directory Id="dir_Intellexer_SDK_Bin_1" Name="Bin">
<Component Id="comp_SDK_1" DiskId="1" KeyPath="yes" Guid="DEA33E99-9166-4139-A3D8-C8E3711CE826">
....
</Directory>
</Directory>
</DirectoryRef>
</Fragment>
</Include>

Question: how can I include in main module file ComponentGroup Id="group_SDK"
main module file
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Module Id="IntelexerSDK" Language="1033" Version="1.0.0.1">
<Package Id="{GUID}" Description="Intelexer SDK" Manufacturer="$(var.Project.Manufacturer)" Comments="Intelexer SDK." InstallerVersion="200" Compressed="yes"/>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLDIR" Name="$(var.Project.Manufacturer)">
</Directory>
</Directory>
</Directory>
</Directory>
</Directory>
</Directory>
</Module>
<?include SDK.wxi ?>
</Wix>

Discussion