在从快捷方式运行并使用基本 UI 添加/删除程序的卸载序列期间,我无法显示对话框。它似乎跳过了在修改和安装过程中显示的 InstallUISequence:
<!--Displays uninstall options before uninstall progress dialog WixUI_InstallMode = "Remove"-->
<InstallUISequence>
<Show Dialog="UninstallDialog" Before="ProgressDlg">WixUI_InstallMode = "Remove"</Show>
</InstallUISequence>
但是,重要的是我让这个对话框在基本卸载过程中运行。是否可以通过 InstallExecuteSequence 运行的 C# 自定义操作显示在 WiX 中定义的对话框?如果是这样,我将如何去做?有教程吗?我想显示的对话框如下所示:
<!--Dialog used to obtain uninstall options from user-->
<Dialog Id="UninstallDialog" Width="120" Height="100" Title="Options">
<Control Id="DelDatabaseCheckBox" Type="CheckBox"
X="15" Y="10" Width="90" Height="17" Property="DELDATABASE"
CheckBoxValue="1" Text="Delete Database"/>
<Control Id="DelSettingsCheckBox" Type="CheckBox"
X="15" Y="30" Width="90" Height="17" Property="DELSETTINGS"
CheckBoxValue="1" Text="Delete Settings"/>
<Control Id="DelErrorLogCheckBox" Type="CheckBox"
X="15" Y="50" Width="90" Height="17" Property="DELERRORLOG"
CheckBoxValue="1" Text="Delete Error Log"/>
<Control Id="ConfirmUninstall" Type="PushButton" X="22" Y="75" Width="70" Height="17" Text="Ok">
<Publish Event="EndDialog" Value="Return">1</Publish>
</Control>
</Dialog>