Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wix目录引用注册表值_Wix_Registry - Fatal编程技术网

Wix目录引用注册表值

Wix目录引用注册表值,wix,registry,Wix,Registry,我正在编写一个安装程序,它需要从注册表值中查找安装目录 我使用该属性查找注册表,组件组引用该属性。但是组件组似乎没有从属性中提取目录。有更好的方法吗 干杯..我想你是在做这样的事情: <Property Id="MY_PATHNAME" Secure="yes"> <RegistrySearch Id="My_Path_Signature" Root="HKLM" Key="$(var.My_Key)" Name="PathName" Type="directory

我正在编写一个安装程序,它需要从注册表值中查找安装目录

我使用该属性查找注册表,组件组引用该属性。但是组件组似乎没有从属性中提取目录。有更好的方法吗


干杯..

我想你是在做这样的事情:

<Property Id="MY_PATHNAME" Secure="yes">
  <RegistrySearch Id="My_Path_Signature" Root="HKLM"
    Key="$(var.My_Key)" Name="PathName" Type="directory">
  </RegistrySearch>
</Property>

你应该提供更多的细节。我假设您正在执行设置目录属性的registrysearch,因此请显示您的源代码,并确保您的搜索将进入正确的注册表,即32位或64位。详细日志将显示是否正在设置属性,但稍后会出现问题。谢谢!我让它工作,它没有设置正确,日志帮助。
msiexec /i MyInstaller.msi /l*v MyLog.txt