Wix 安装程序注册表搜索失败 [英] Wix Installer Registry Search Fails

查看:38
本文介绍了Wix 安装程序注册表搜索失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 wix 安装程序中进行注册表搜索,以便我知道在哪里安装我的插件.我正在尝试查找 Tekla Structures 2018i 的安装位置.但是,每次我尝试运行安装程序时,我的情况都会失败.任何帮助将不胜感激.

I am attemping to do a registry search with in a wix installer so that I know where to install my plug in. I am trying to look up where Tekla Structures 2018i is installed at. However, every time I try running the installer my condition fails. Any help would be greatly appreciated.

产品标签:

<Property Id="TSMAINDIR">
        <RegistrySearch Id="TS2018iSetupMain"
                        Root="HKLM"
                        Key="Software\Tekla\Structures\2018i\setup"
                        Name="MainDir"
                        Type="raw"
                        Win64="yes"/>
      </Property>
      <Condition Message="This application requires Tekla Structures 2018i. Please install Tekla Structures 2018i then run this installer again.">
        <![CDATA[Installed or TSMAINDIR]]>
      </Condition>

注册

我已经创建了一个日志文件.文件比较长,我就不贴了.但是,当我搜索 TSMAINDIR 时,我发现以下内容:

I have created a log file. The file is rather lengthly so I will not post it. However, When I do a search for TSMAINDIR I find the following:

AppSearch: Property: TSMAINDIR, Signature: TS2018iSetupMain
MSI (c) (00:34) [14:25:26:994]: Note: 1: 2262 2: Signature 3: -2147287038 
MSI (c) (00:34) [14:25:26:994]: PROPERTY CHANGE: Adding TSMAINDIR property. Its value is 'C:\Program Files\Tekla Structures\'.

MSI (s) (E4:2C) [14:25:27:694]: Ignoring disallowed property TSMAINDIR

推荐答案

我觉得还行.您有正确的位数标志,因此您可以搜索注册表的 x64 部分.你查看过日志文件吗?如何创建日志文件.

Looks OK to me. You have the right bitness flag so you search the x64 section of the registry. Have you looked in the log file? How to create a log file.

我认为这并不重要,因为您没有处于延迟模式,但请尝试将属性设置为安全:

I don't really think it should matter since you are not in deferred mode, but try setting the property to be secure:

<Property Id="TSMAINDIR" Secure="yes">
<...etc...>

这篇关于Wix 安装程序注册表搜索失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆