2

Using WixSharp, we can insert a custom System.Windows.Forms window as dialog .

project.InjectClrDialog("ShowCustomDialog", Dialogs.InstallDirDlg, Dialogs.VerifyReadyDlg);

[CustomAction]
public static ActionResult ShowCustomDialog(Session session)
{
    return WixCLRDialog.ShowAsMsiDialog(new MyCustomDialog(session));
}

The MyCustomDialog is derived from WixCLRDialog class.

If I have consecutive custom dialogs ( done in System.Windows.Forms ) to show. How do I insert them ?

Yan Sklyarenko
  • 31,557
  • 24
  • 104
  • 139
dan_l
  • 1,692
  • 2
  • 23
  • 40

1 Answers1

3

The easiest way is to pack multiple dialogs into a single UI shell and allow the shell to navigate between dialogs. If you take this approach then you just inject a single shell-ClrDialog.

BTW, the UI shellwith multiple CLR dialogs is a feature I am planing to release very soon.

Oleg

user3032112
  • 141
  • 3