在从 installshield 转换为 wix 的过程中,我正在移植自定义操作。
一个是用于确定以前安装的版本并在找到时弹出消息。我猜之前没有正确跟踪指南。
在 installshield 中,他们似乎在 ValidateProductID 之后安排了 CA。我试着做同样的事情:
<CustomAction Id="CA_CheckPreviousVersions.SetProperty" Property="CA_CheckPreviousVersions" Value="ERROR_UNINSTALL_VERSION=$(var.ERROR_UNINSTALL_VERSION)" />
<CustomAction Id="CA_CheckPreviousVersions" DllEntry="CheckPreviousVersions" Execute="deferred" BinaryKey="LunaClientCustomActions_dll" />
<InstallExecuteSequence>
...
<Custom Action="CA_CheckPreviousVersions.SetProperty" After="ValidateProductID" />
<Custom Action="CA_CheckPreviousVersions" After="CA_CheckPreviousVersions.SetProperty" >NOT Installed AND NOT PATCH</Custom>
</InstallExecuteSequence>
除了,我收到一个讨厌的警告:
error LGHT0204: ICE77: CA_CheckPreviousVersions is a in-script custom action. It must be sequenced in between the InstallInitialize action and the InstallFinalize action in the InstallExecuteSequence table
为什么我得到这个,而似乎是允许的?更重要的是,我如何复制以前的行为?