From Wix 4.0
C:\Program Files (x86)\WiX Toolset v4.0\bin>heat /? | find /i "reg"
reg harvest a .reg file
-sreg suppress registry harvesting
To use, where regfile.reg is the registry input file and fragment.xml is the output file to generate.
heat reg regfile.reg -o fragment.xml