使用 WixSharp,我们可以插入自定义 System.Windows.Forms 窗口作为对话框。
project.InjectClrDialog("ShowCustomDialog", Dialogs.InstallDirDlg, Dialogs.VerifyReadyDlg);
[CustomAction]
public static ActionResult ShowCustomDialog(Session session)
{
return WixCLRDialog.ShowAsMsiDialog(new MyCustomDialog(session));
}
MyCustomDialog 派生自 WixCLRDialog 类。
如果我有连续的自定义对话框(在 System.Windows.Forms 中完成)要显示。如何插入它们?
最佳答案
最简单的方法是将多个对话框打包到一个 UI shell 中,并允许 shell 在对话框之间导航。如果您采用这种方法,那么您只需注入(inject)一个 shell-ClrDialog。
顺便说一句,带有多个 CLR 对话框的 UI shell 是我计划很快发布的一项功能。
奥列格
关于c# - WixSharp 注入(inject)多个自定义 CLR 对话框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30381854/