WiX不写注册表值Win 7 x64

问题描述

| 我是WiX的新手,我对安装过程中如何创建注册表项一无所知。我正在使用像这样的
RegistryKey
RegistryValue
元素:
<Component Id=\"RegKeys\" Guid=\"824A9E7D-211C-4404-80F7-6AC4185B1E66\">
    <RegistryKey Action=\"createAndRemoveOnUninstall\" Root=\"HKLM\" Key=\"SOFTWARE\\My\\Path\">
        <RegistryValue Name=\"MyKey\" Type=\"string\" Value=\"Blah blah blah\"/> 
    </RegistryKey>
</Component>
并呼叫主要功能
ComponentRef
<ComponentRef Id=\"RegKeys\"/>
安装程序可以正常运行,并且运行时没有任何明显的错误,但是在
Wow6432Node
键(或与此有关的其他任何位置)下均未创建任何键或值。该安装程序适用于32位应用程序,但我尝试将其安装在Windows 7 64位上。 我缺少什么(我确定这很明显)?我们正在使用WiX 3.5。     

解决方法

尝试两件事: 使用Windows SDK中的Orca来验证注册表表中是否存在该值。 (这消除了构建问题。) 检查详细日志以查看MSI对组件进行的操作以及对注册表数据的处理。     ,注册表值仅在其组成部分中吗?如果是这样,请将KeyPath设置为\“ yes \”。     

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...