如何使用 Wix 创建自定义 VerifyReadyDlg?

问题描述 投票:0回答:1

如何在 Wix Setup 中创建这样的对话框?它是在 Inno Setup 中默认实现的,但我现在正在考虑如何在 Wix 中执行相同的操作。我的主要问题是如何创建禁用的文本区域来描述应该安装的内容。

应该以这种方式完成:用户通过单击复选框(复选框设置了一些属性)在上一页选择他要安装的额外内容(桌面图标或开始菜单文件夹等),然后用户可以看到将要安装的内容安装在下一页。

例子:

Example

我已经开始创建对话框,但我不知道如何创建文本区域

<Dialog Id="CustomVerifyReadyDlg" Width="370" Height="270" Title="[ProductName] - Setup">
    <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes"
            Text="{\DlgTitleFont}Ready to Install"/>
    <Control Id="Description" Type="Text" X="25" Y="23" Width="340" Height="15" Transparent="yes" NoPrefix="yes"
            Text="Setup is now ready to begin installing [ProductName] on your computer."/>
    <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
    <Control Id="SecondDescription" Type="Text" X="25" Y="65" Width="340" Height="30" Transparent="yes" NoPrefix="yes"
            Text="Click Install to continue with the installation, or click Back if you want to review or change any settings."/>
</Dialog>
wix wix3
1个回答
0
投票

为此目的,您应该使用可滚动文本控件

应该是这样的 + 你可以使用 previous dialogscustom action for you dialog.

<Control Id="Title" Type="ScrollableText">
   <Text> SOMECUSTOMPROPERTY </Text>
</Control>

这是关于一般对话的文档。

© www.soinside.com 2019 - 2024. All rights reserved.