Closed Aaswin1996 closed 6 months ago
Hiho, you use WPF template, right ? you dialog, according to this code, doesnt implement IWpfDialog Interface and many another Interfaces. I think, msi doesnt know here aboud your session, and disapears. new Dialog should implement Interface and ineherit from WpfDialog.
public partial class WelcomeDialog : WpfDialog, IWpfDialog
Here is the debugging instructions: https://github.com/oleg-shilo/wixsharp/wiki/Tips'n'Tricks#debugging
And I advise you to create your project from the VS WixSharp templates so you know for sure that your dialogs source code complies with the msi hosting interface expectations.
Hiho, you use WPF template, right ? you dialog, according to this code, doesnt implement IWpfDialog Interface and many another Interfaces. I think, msi doesnt know here aboud your session, and disapears. new Dialog should implement Interface and ineherit from WpfDialog.
public partial class WelcomeDialog : WpfDialog, IWpfDialog
No I don't use WPF templates .Have created my project from VS WixSharp Template
I am creating a ManagedUI Project with multiple dialogs as soon as i click on the next button of the welcome dialog installer vanishes nothing happens .
setu.cs code :
`static void Main() { Compiler.PreserveTempFiles = true; var project = new ManagedProject("MyProduct", new Dir(@"%ProgramFiles%\My Company\My Product", new File("Program.cs")));
}`
Dialog.cs code `public partial class WelcomeDialog : ManagedForm, IManagedDialog // change ManagedForm->Form if you want to show it in designer { ///
/// Initializes a new instance of the class.
///
public WelcomeDialog()
{
InitializeComponent();
}
}`