clickonce 自定义包的引导程序未正确计算安装条件

Bootstrapper for clickonce custom package is not properly calculating the installconditions

我正在尝试为 odbcsqldriver 13 构建一个自定义包,以便将其添加到先决条件中并强制相应地安装 clickonce 项目。我在一个包中添加了 x86 版本和 x64。未正确评估先决条件即将安装时的安装条件,或者我遗漏了一些东西。 该软件包具有以下安装条件

<InstallChecks>
    <RegistryCheck Property="OS64" Key="HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion" Value="CommonFilesDir" />
</InstallChecks>
<InstallConditions>
    <ByPassIf Property="OS64" Compare="ValueExists" />
</InstallConditions>

它是 x86 版本的,如果机器是 运行 64 位 windows 则不应安装 对于 x64,它是

<InstallConditions>
    <ByPassIf Property="OS64" Compare="ValueNotExists" />
</InstallConditions>

虽然 OS64 属性 设置为 C:\Program Files (x86)\Common Files,但在 64 位机器上的安装正在启动,它会尝试安装 x86 版本的驱动程序。

问题出在 ByPassIf 的 InstallConditions 上。我用大写 "P" 写了 ByPassIf,它应该是 BypassIf。