我的安装项目中有两个 WIX 对话框
安装程序以“成功”状态终止时显示的最终形式
<Dialog Id="FinishedForm">
...
</Dialog>
和页面显示有关我们产品的几张幻灯片。
<Dialog Id="IntroductionTourPage">
...
<Control Id="SkipTourButton" Type="PushButton">
<Publish Event="NewDialog" Value="FinishedForm">1</Publish>
</Control>
...
</Dialog>
我希望 IntroductionTourPage 仅在产品安装后显示(未升级或删除),但我不知道该怎么做。我试过了
<InstallUISequence>
<Show Dialog="FinishedForm" OnExit="success">Condition</Show>
<Show Dialog="IntroductionTourPage" OnExit="success">NOT Condition</Show>
</InstallUISequence>
但它在 Wix 中无效,因此这种方法失败了。然后我尝试了
<InstallUISequence>
<Show Dialog="FinishedForm" Sequence="1">Condition</Show>
<Show Dialog="IntroductionTourPage" Sequence="2">NOT Condition</Show>
</InstallUISequence>
它没有用。我当时试过
<InstallUISequence>
<Show Dialog="FinishedForm" OnExit="success"/>
<Show Dialog="IntroductionTourPage" Before="FinishedForm">Condition</Show>
</InstallUISequence>
但它在 Wix 中也无效。
现在我想尝试一下:
<InstallUISequence>
<Custom Action="CA_ChooseAndShowDialogBasedOnCondition" OnExit="success"/>
</InstallUISequence>
但我找不到任何示例如何显示来自 CA 的 Wix 对话框。
有任何想法吗?
提前致谢, 安德烈