Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding a .reg file to registry WIX

Tags:

registry

wix

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

like image 997
Natalie Carr Avatar asked Aug 16 '12 13:08

Natalie Carr


People also ask

Where do I put .reg files?

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 do I import to 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.

How do I add a REG file to registry silently?

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.


1 Answers

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.

like image 152
Yan Sklyarenko Avatar answered Sep 22 '22 09:09

Yan Sklyarenko