使用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完成)要显示。我该如何插入它们?
发布于 2015-05-22 01:00:14
最简单的方法是将多个对话框打包到一个UI中,并允许shell在对话框之间导航。如果采用这种方法,那么只需注入一个单独的shell-ClrDialog。
顺便说一句,带有多个CLR对话框的UI外壳是我计划很快发布的一个特性。
奥列格
https://stackoverflow.com/questions/30381854
复制相似问题