Is there a tool to generate WiX XML given a .reg file?
In 2.0, you were supposed to be able to run tallow to generate registry XML:
tallow -r my.reg
For what it's worth, the version of tallow I have is producing empty XML.
In 3.0, tallow has been replaced with heat, but I can't figure out how to get it to produce output from a .reg file.
Is there a way to do this in 3.0?
From Wix 4.0
To use, where regfile.reg is the registry input file and fragment.xml is the output file to generate.
Now it's built into Wix :
Heat.exe
- Harvesting tool.Here is the source code of the utility that generates Wix 3 markup (including binary, dword and multi-string registry values):
This code works well, but if you have a an empty string value in the registry file you are importing, an exception error gets thrown. You may want to update the ParseRegistryValue section accordingly.
I've tried tallow.exe (version 2.0.5805) from the latest stable Wix 2 release and it worked fine for me.
This will generate the markup using Wix 2 "Registry" tag that was deprecated in Wix 3. Then you have to copy the output into a wix source file and execute WixCop utility to convert Wix 2 markup to Wix 3:
I couldn't find a tool, so I made one.
The source code may not be elegant, but it seems to work: