将 .reg 文件添加到注册表 WIX [英] Adding a .reg file to registry WIX
本文介绍了将 .reg 文件添加到注册表 WIX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
环顾四周,我似乎找不到解决方案.
been looking around and I cannot seem to find a solution.
问题:我有一个 .reg 文件,我需要在安装过程中将其添加到注册表中.我正在使用 WIX 3.5.我无法使用 Registrykey 等手动添加它,因为我的客户可能已更改其内容.
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.
有什么想法吗?
谢谢
推荐答案
您可以尝试使用 heat.exe
并将 .reg
文件收集到 WiX 片段中.它可能看起来像这样:
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
尝试使用 heat.exe
的其他选项以获得您需要的输出.
Experiment with other options of heat.exe
to get the output you need.
这篇关于将 .reg 文件添加到注册表 WIX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文