Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/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
WiX自定义操作条件是否有更新的真值表?_Wix - Fatal编程技术网

WiX自定义操作条件是否有更新的真值表?

WiX自定义操作条件是否有更新的真值表?,wix,Wix,我正在尝试让一些自定义操作在我的安装上正常工作 用于Wix中的我的逻辑(由ahmd0提供) 问题是它似乎不起作用。以下是我目前的情况: <Custom Action='RemoveService' After='InstallInitialize'>Installed</Custom> <Custom Action='WaitForFileLocks' After='InstallInitialize'>Installed</Custom> &

我正在尝试让一些自定义操作在我的安装上正常工作

用于Wix中的我的逻辑(由ahmd0提供)

问题是它似乎不起作用。以下是我目前的情况:

<Custom Action='RemoveService' After='InstallInitialize'>Installed</Custom>

<Custom Action='WaitForFileLocks' After='InstallInitialize'>Installed</Custom>

<Custom Action='InstallService' Before='InstallFinalize'>NOT REMOVE ~= "ALL" OR UPGRADINGPRODUCTCODE</Custom>

<Custom Action='MergeConfigFiles' Before='InstallFinalize'>NOT REMOVE ~= "ALL" OR UPGRADINGPRODUCTCODE</Custom>
已安装
安装
不删除~=“全部”或升级ProductCode
不删除~=“全部”或升级ProductCode
我期望从中得到的行为:

  • 应在卸载和升级时运行RemoveService和WaitForFileLocks
  • InstallService和MergeConfigFiles应在安装和升级时运行
我看到的行为:

  • RemoveService和WaitForFileLocks在卸载时运行,但不在升级时运行
  • InstallService和MergeConfigFiles正在安装时运行,但未在升级时运行
我用的桌子错了吗?我的逻辑正确吗?我的问题是Windows认识到什么是“升级”吗?在我增加了安装的所有3个版本号之后,我签入了添加/删除程序,并且新版本正在那里正确更新