0

我正在创建一个 wix 引导程序项目,它按顺序执行 2 个 msi 文件。我希望用户拥有允许用户选择要执行的 msi 文件的 UI(有些类似于功能选择 UI),因为我在安装页面上添加了一个按钮

<Page Name="Install">
<Richedit Name="EulaRichedit" X="11" Y="80" Width="-11" Height="-70" TabStop="yes" FontId="0" HexStyle="0x800000" />
<Checkbox Name="EulaAcceptCheckbox" X="-11" Y="-41" Width="260" Height="17" TabStop="yes" FontId="3" HideWhenDisabled="yes">#(loc.InstallAcceptCheckbox)</Checkbox>
<Button Name="OptionsButton" X="-171" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0" HideWhenDisabled="yes">#(loc.InstallOptionsButton)</Button>
<Button Name="FeatureButton" X="-11" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0" HideWhenDisabled="yes">Feature</Button>

<Button Name="InstallButton" X="-91" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">#(loc.InstallInstallButton)</Button>
<Button Name="WelcomeCancelButton" X="-11" Y="-11" Width="75" Height="23" TabStop="yes" FontId="0">#(loc.InstallCloseButton)</Button>
</Page>

现在我想当我点击FeatureButton一个新页面时必须出现。有没有办法做到这一点?

4

1 回答 1

0

这对于默认引导程序是不可能的,您需要创建自己的自定义引导程序。

请查看此链接以帮助您入门:

https://www.wrightfully.com/part-1-of-writing-your-own-net-based-installer-with-wix-overview/

于 2016-10-21T16:03:20.170 回答