Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/design-patterns/2.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
Installation 为什么不是';我的注册表启动条件在Windows Installer文件中不起作用吗?_Installation_Windows Installer - Fatal编程技术网

Installation 为什么不是';我的注册表启动条件在Windows Installer文件中不起作用吗?

Installation 为什么不是';我的注册表启动条件在Windows Installer文件中不起作用吗?,installation,windows-installer,Installation,Windows Installer,在允许安装程序继续之前,我正在尝试检查是否安装了SharePoint 2010。为了实现这一点,我添加了以下“搜索目标计算机”属性: Name=“搜索MOSS2010” Property=SHAREPOINT2010INSTALLED RegKey=SOFTWARE\Microsoft\Shared Tools\Web服务器扩展\14.0 Root=vsdrrHKLM 值=SharePoint 在我的系统上,指示的路径存在,且值“SharePoint”为“Installed” 现在,我添加了一个

在允许安装程序继续之前,我正在尝试检查是否安装了SharePoint 2010。为了实现这一点,我添加了以下“搜索目标计算机”属性:

Name=“搜索MOSS2010”
Property=SHAREPOINT2010INSTALLED
RegKey=SOFTWARE\Microsoft\Shared Tools\Web服务器扩展\14.0
Root=vsdrrHKLM
值=SharePoint

在我的系统上,指示的路径存在,且值“SharePoint”为“Installed”

现在,我添加了一个启动条件:
名称=已安装SharePoint 2010
条件=SHAREPOINT2010INSTALLED=“Installed”
InstallUrl=(空白)
Message=SharePoint 2010必须在安装此软件包之前安装

现在,在我的系统上,安装了SP2010后,这被评估为false,因为安装程序出现上述消息失败

有没有办法在安装时调试属性值?还是我在做什么蠢事


谢谢。

听起来您的安装程序可能是(例如)32位安装程序,但注册表项可能在64位注册表中(反之亦然)


要通过Visual Studio创建64位安装程序,请参见:

我原以为32/64位注册表重影是针对HKCR部分的,而不是针对整个HKLM。如果Sharepoint正在写入64位HKLM,则32位进程根本看不到它。如果它正在写入32位HKLM,那么您需要在Software\Wow6432Node下查看,以从64位进程中获取32位值。好吧,我真倒霉!毕竟,这是整个软件蜂巢。谢谢