been looking around and I cannot seem to find a solution.
PROBLEM: I have a .reg file and I need to add it to the registry during my install. I am using WIX 3.5. I cannot add it manually using the Registrykey and so on as my customer may have changed its contents.
Any ideas?
Thanks
REG files are text files: Create them within a text editor when you save a file with the . reg extension. On Windows, right-click a REG file and open it with Notepad, or the text editor of your choice, to edit it. To use a REG file, simply open it and its contents will be added to the Windows Registry.
How to import a registry key. Run the file with the registry keys that you have exported earlier. Enter your administrator password and confirm your actions, if requested. Click Yes.
To add a . reg file silently to your Windows registry, you can use the regedit command. As almost always, the /s parameter is for silent and /q for quiet.
You can try to use heat.exe
and harvest the .reg
file into the WiX fragment. It might look like this:
heat.exe reg myregistry.reg -out registry.wxs
Experiment with other options of heat.exe
to get the output you need.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With