I'm trying to add to my WiX setup a ocx registration. I do this:

```
heat.exe file MyFile.ocx -out C:\TEMP\registration.wxs

```

and it generates a .wxs that looks like this:

```
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
    <Fragment>
        <DirectoryRef Id="TARGETDIR">
            <Directory Id="dirC202475C84215EEEECB6F7F457B64EC0" Name="data" />
        </DirectoryRef>
    </Fragment>
    <Fragment>
        <DirectoryRef Id="dirC202475C84215EEEECB6F7F457B64EC0">
            <Component Id="cmpEA6A1F59D6A38919A7ABA0CC22077BAD" Guid="PUT-GUID-HERE">
                <File Id="filD9FC7A2F17B4650D687BA4E565868379" KeyPath="yes" Source="SourceDir\data\MyFile.ocx">
                  ...

```

I don't know how to say to the main wxs, say Product.wxs how to include this information to register the OCX during setup.
After running the setup I check in HKEY\_LOCAL\_MACHINE\SOFTWARE\Classes\CLSID but I can't find the ocx's guid. 
I can find it if I run a regsvr32.exe e:\MyFile.ocx

**More info**

Cannot see any reference to the ocx guids in the installation log generated with msiexec

**Ugly solution**

I copied the heat-generated Fragments into my Module and it works. Still can't find out how to reference the same content on a separated file.